Skip to content

Commit

Permalink
测试打包
Browse files Browse the repository at this point in the history
  • Loading branch information
aiqinxuancai committed Mar 1, 2024
1 parent 9316c29 commit 124f684
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,12 @@ jobs:
# 下载并解压aria2
- name: Download and Extract Aria2
run: |
$tempDir = "$env:GITHUB_WORKSPACE\aria2_temp"
$ariaPath = "$env:GITHUB_WORKSPACE\Aria2Fast\bin\Release\net8.0-windows\win-x64\publish\Aria2"
Invoke-WebRequest -Uri "https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0-win-64bit-build1.zip" -OutFile "aria2.zip"
Expand-Archive -Path "aria2.zip" -DestinationPath "$env:GITHUB_WORKSPACE\Aria2Fast\bin\Release\net8.0-windows\win-x64\publish\Aria2"
Expand-Archive -Path "aria2.zip" -DestinationPath $tempDir
Move-Item -Path $tempDir\aria2-1.37.0-win-64bit-build1\* -Destination $ariaPath
Remove-Item –Path $tempDir -Recurse -Force
shell: powershell
- name: Compress
run: powershell Compress-Archive -Path $env:GITHUB_WORKSPACE\Aria2Fast\bin\Release\net8.0-windows\win-x64\publish -DestinationPath .\Aria2Fast.zip
Expand Down

0 comments on commit 124f684

Please sign in to comment.