The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
fix(ci): Windows arm64 构建使用 x86_64 hdiffz
XiaoYouChR111a75192c18
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex db10820b..7a413777 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -131,10 +131,15 @@ jobs:- name: Download HDiffPatchshell: pwshrun: |- $hdiffArch = if ("${{ matrix.architecture }}" -eq "arm64") { "windows_arm64" } else { "windows64" }- Invoke-WebRequest -Uri "https://github.com/sisong/HDiffPatch/releases/download/v5.1.3/hdiffpatch_v5.1.3_bin_${hdiffArch}.zip" -OutFile hdiffpatch.zip+ Invoke-WebRequest -Uri "https://github.com/sisong/HDiffPatch/releases/download/v5.1.3/hdiffpatch_v5.1.3_bin_windows64.zip" -OutFile hdiffpatch.zipExpand-Archive hdiffpatch.zip -DestinationPath hdiffpatch- Copy-Item hdiffpatch/${hdiffArch}/hpatchz.exe dist/Ghost-Downloader-3.dist/+ if ("${{ matrix.architecture }}" -eq "arm64") {+ Invoke-WebRequest -Uri "https://github.com/sisong/HDiffPatch/releases/download/v5.1.3/hdiffpatch_v5.1.3_bin_windows_arm64.zip" -OutFile hdiffpatch-arm64.zip+ Expand-Archive hdiffpatch-arm64.zip -DestinationPath hdiffpatch+ Copy-Item hdiffpatch/windows_arm64/hpatchz.exe dist/Ghost-Downloader-3.dist/+ } else {+ Copy-Item hdiffpatch/windows64/hpatchz.exe dist/Ghost-Downloader-3.dist/+ }- name: Prepare For Signif: ${{ github.event.inputs.sign_artifact == 'true' }}@@ -201,7 +206,6 @@ jobs:env:GH_TOKEN: ${{ github.token }}run: |- $hdiffArch = if ("${{ matrix.architecture }}" -eq "arm64") { "windows_arm64" } else { "windows64" }$prevTag = gh release list --limit 2 --json tagName --jq '.[1].tagName'if (-not $prevTag) { Write-Output "No previous release, skipping delta"; exit 0 }$prevVer = $prevTag -replace '^v', ''@@ -223,7 +227,7 @@ jobs:}$patchFile = "patch-Windows-${{ matrix.architecture }}-${prevVer}-to-${{ env.VERSION }}.hdiff"- & "hdiffpatch/${hdiffArch}/hdiffz.exe" -f "$oldDir" dist/Ghost-Downloader-3.dist "$patchFile"+ & "hdiffpatch/windows64/hdiffz.exe" -f "$oldDir" dist/Ghost-Downloader-3.dist "$patchFile"echo "PATCH_FILE=$patchFile" >> $env:GITHUB_ENV- name: Upload to release