feat(downloader): 更新 aria2c 为修改版 aria2c-fast_x64

- 替换原有的 aria2c.exe 为 aria2c-fast_x64.exe
- 更新 aria2c 路径和相关配置
- 优化下载线程中的 aria2c 参数设置
- 更新 README 文件中的贡献者列表
- 版本号从 1.3.0 升级到 1.3.1
This commit is contained in:
hyb-oyqq
2025-08-01 15:40:43 +08:00
parent c5b9f1746a
commit a93991ca9d
7 changed files with 12 additions and 9 deletions

View File

@@ -143,7 +143,7 @@ class DownloadThread(QThread):
self.finished.emit(False, "下载已手动停止。")
return
aria2c_path = resource_path("aria2c.exe")
aria2c_path = resource_path("aria2c-fast_x64.exe")
download_dir = os.path.dirname(self._7z_path)
file_name = os.path.basename(self._7z_path)
@@ -171,23 +171,23 @@ class DownloadThread(QThread):
'--header', 'Sec-Fetch-Mode: cors',
'--header', 'Sec-Fetch-Site: same-origin',
'--http-accept-gzip=true',
'--console-log-level=info',
'--console-log-level=notice',
'--summary-interval=1',
'--log-level=info',
'--log-level=notice',
'--max-tries=3',
'--retry-wait=2',
'--connect-timeout=60',
'--timeout=60',
'--auto-file-renaming=false',
'--allow-overwrite=true',
# 优化参数 - 使用aria2允许的最佳设置
'--split=128', # 增加分片数到128
'--max-connection-per-server=16', # 最大允许值16
'--split=128',
'--max-connection-per-server=64',
'--min-split-size=1M', # 减小最小分片大小
'--optimize-concurrent-downloads=true', # 优化并发下载
'--file-allocation=none', # 禁用文件预分配加快开始
'--async-dns=true', # 使用异步DNS
'--disable-ipv6=true' # 禁用IPv6提高速度
'--disable-ipv6=true', # 禁用IPv6提高速度
'--quiet=true' # 减少非必要日志输出
])
# 证书验证现在总是需要因为我们依赖hosts文件