Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
Watch
Unwatch
Watching
Releases Only
Ignoring
1
Star
0
Fork
0
老虎会游泳
/
aria2-ohos
Code
Issues
0
Pull Requests
0
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Releases
Tags
All
All
Official
Prerelease
Release list
Aria2 CLI for HarmonyOS Next 5.x | v1.0.1 hnp
Latest
鸿蒙PC上的命令行版 Aria2(aria2c) | v1.0.0
Aria2 CLI for HarmonyOS Next 5.x | v1.0.1 hnp
Latest
Compare
老虎会游泳
2026-01-21 00:37
v1.0.1-hnp
61816f4
### 安装方法: 请用小白调试助手2.5或更高版本进行安装,2.4及之前的版本无法给含有hnp命令行组件的hap包签名。 小白调试助手下载地址:https://github.com/likuai2010/auto-installer/releases ### 使用方法: 1. 打开鸿蒙PC自带终端(开启开发者模式后会出现)。 2. 在终端输入想运行的命令并按回车。可用命令举例: #### 显示帮助信息: ``` aria2c --help ``` #### 单线程下载: ``` aria2c https://hu60.cn/tpl/classic/img/hulvlin3.png ``` #### 多线程下载: ``` aria2c -x5 -s5 https://official-package.wpscdn.cn/wps/download/WPS_Setup_21541.exe ``` 3. 使用基于网页的 AriaNG 图形界面进行下载任务管理: 在终端执行以下命令打开RPC: ``` aria2c -x5 -s5 --enable-rpc --rpc-listen-all --rpc-allow-origin-all ``` 然后访问以下网站进行使用:https://ariang.hu60.cn/#!/settings/rpc/set/http/127.0.0.1/6800/jsonrpc  4. 文件保存在哪里? 文件默认保存在终端的当前目录,默认为“存储>个人”文件夹。 如果想要保存在其他位置,请先执行以下命令跳转到对应的目录,然后再执行 aria2c 命令: ``` cd 目录名 ``` 例如,保存到下载文件夹: ``` cd Download aria2c -x5 -s5 https://official-package.wpscdn.cn/wps/download/WPS_Setup_21541.exe ``` 5. 如何取消任务? 同时按 Ctrl 和 C 键可以取消任务。如果没反应,就再按一下回车键。 6. 技术细节: 你可以在以下位置找到本应用添加到终端的命令文件: ``` ls /data/service/hnp find /data/service/hnp/cn-hu60-aria2.org ``` 7. 更新日志 【v1.0.1】 1. 改用 hnp 打包,不需要执行 source /dev/shm/aria2c 命令就可直接调用 aria2c 命令。 2. 关闭本应用窗口后依然可以正常调用 aria2c 命令。 3. 由于终端可以直接执行原始 aria2c 命令,1.0 版本的文件权限问题不再存在,现在文件可保存至所有终端可以 cd 进入的文件夹。 4. 1.0 版本中由于输入输出重定向导致的下载进度无法及时更新的问题也得到解决。 感谢 Jiajie Chen 的 Termony 项目 <https://github.com/jiegec/Termony> 提供了 hnp 打包方法。 8. 项目源代码: https://gitee.com/SwimmingTiger/aria2-ohos https://github.com/SwimmingTiger/aria2-ohos
Last committed message:
UI: 打开RPC时默认并发数设为5线程
鸿蒙PC上的命令行版 Aria2(aria2c) | v1.0.0
Compare
老虎会游泳
2025-06-13 14:36
v1.0.0
9025891
 ### 使用方法: 0. 下载`cn.hu60.aria2-v1.0.0.hap`安装包,并用[小白调试助手](https://github.com/likuai2010/auto-installer/releases)安装。如果打不开Github,可以去[hu60.cn](https://hu60.cn/q.php/bbs.topic.106840.html#nav)下载小白调试助手。 首次安装需要打开开发者模式,借助Windows虚拟机(也可以用另一台电脑,或者安卓手机、鸿蒙手机)把小白调试助手鸿蒙版安装到鸿蒙PC上。后续双击hap即可用鸿蒙版小白调试助手进行安装。 Windows虚拟机方案参考视频:[https://www.bilibili.com/video/BV1ZETBzuEjD/](https://www.bilibili.com/video/BV1ZETBzuEjD/) 2. 打开 Aria2 应用,不要关闭其窗口。打开终端,输入以下命令,把 aria2c 命令加载到终端: ``` source /dev/shm/aria2c ``` 3. 运行 aria2c 命令: ``` aria2c --help aria2c --summary-interval=2 https://hu60.cn/tpl/classic/img/hulvlin3.png aria2c --summary-interval=2 https://github.com/SwimmingTiger/aria2-ohos/archive/refs/heads/main.zip # 多线程下载 aria2c --summary-interval=2 -x5 -s5 https://github.com/GloriousEggroll/wine-ge-custom/releases/download/GE-Proton8-26/wine-lutris-GE-Proton8-26-x86_64.tar.xz ``` 添加 --summary-interval=2 参数可以每2秒输出一次下载进度,如果不添加,60秒输出一次下载进度。 4. 使用基于网页的 AriaNG 图形界面进行下载任务管理: 在终端执行以下命令打开RPC: ``` source /dev/shm/aria2c aria2c --enable-rpc --rpc-listen-all --rpc-allow-origin-all ``` 然后访问以下网站进行使用: https://ariang.hu60.cn/#!/settings/rpc/set/http/127.0.0.1/6800/jsonrpc  4. 文件保存在哪里? 因为鸿蒙权限问题,文件只能保存在“下载/Aria2”文件夹内,其他文件夹没有写入权限。 在终端内可通过以下命令进入该文件夹: ``` cd ~/Download/cn.hu60.aria2 ``` 如果该文件夹不存在,首次调用 aria2c 命令时会自动创建。 你可以在该文件夹内创建子文件夹并cd进去,随后调用aria2c命令就会下载到你进入的文件夹。 但是如果你进入的文件夹不是 ~/Download/cn.hu60.aria2 的子文件夹, aria2c 命令就会自动跳转到 ~/Download/cn.hu60.aria2 文件夹。 5. 如果 aria2c 进程启动失败,查看错误信息: ``` cat /dev/shm/cn.hu60.aria2.stderr cat /dev/shm/cn.hu60.aria2.stdout ``` 6. 项目源代码: * https://gitee.com/SwimmingTiger/aria2-ohos * https://gitee.com/SwimmingTiger/aria2
Last committed message:
fix: 向aria2c发送SIGTERM信号,防止按Ctrl+C后进程无法结束
Download
To prevent Robot download, Please enter the captcha to continue
Cancel
Download
1
https://gitee.com/SwimmingTiger/aria2-ohos.git
git@gitee.com:SwimmingTiger/aria2-ohos.git
SwimmingTiger
aria2-ohos
aria2-ohos
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register