From 124f684d74c7efcc86dbe9d5a95fa5fa9f0daf69 Mon Sep 17 00:00:00 2001 From: aiqinxuancai Date: Fri, 1 Mar 2024 14:48:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnet-desktop.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index bb4d166..88c2cfb 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -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