The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
ci(release): GitCode 附件上传失败时重试
XiaoYouChR73379898b688
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 557947c2..eb9e1598 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -1160,8 +1160,24 @@ jobs:-w "uploaded: ${name} http=%{http_code} bytes=%{size_upload} time=%{time_total}s\n"}+ # GitCode 并发上传偶尔返回 502+ upload_with_retry() {+ for attempt in 1 2 3; do+ upload_file "$1" && return 0+ sleep 5+ done+ echo "$1" >> failed.txt+ }++ rm -f failed.txtfor f in assets/patch-*.hdiff assets/Ghost-Downloader-v${VERSION}-*; do- [ -f "$f" ] && { upload_file "$f" || echo "WARN: failed $f"; } &+ [ -f "$f" ] && upload_with_retry "$f" &donewait+ if [ -f failed.txt ]; then+ echo "Failed to upload:"+ cat failed.txt+ exit 1+ fi+