File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,27 +41,19 @@ jobs:
4141 dotnet-version : ' 8.0.x'
4242
4343 - if : steps.check_tag.outputs.EXISTS == 'false'
44- shell : pwsh
4544 run : |
46- # 1. 生成标准的“可移植”版本 (这是你清理脚本运行的基础)
4745 dotnet publish src/ExHyperV.csproj -c Release --self-contained false -o ./publish_portable
48-
49- # 2. 专门生成一个 ARM64 版本 (仅为了提取那个原生的 ExHyperV.exe)
50- # 注意:这里加了 -r,SDK 会自动下载缺失的 win-arm64 packs
5146 dotnet publish src/ExHyperV.csproj -c Release -r win-arm64 --self-contained false -o ./temp_arm64
5247
5348 - if : steps.check_tag.outputs.EXISTS == 'false'
5449 shell : pwsh
5550 run : |
5651 $ver = "${{ steps.get_version.outputs.VERSION }}"
5752
58- # 准备 x64 分发包 (直接使用可移植版本)
5953 Copy-Item -Path "./publish_portable" -Destination "./dist_x64" -Recurse
6054 Compress-Archive -Path ./dist_x64/* -DestinationPath "ExHyperV_$($ver)_x64.zip" -Force
6155
62- # 准备 ARM64 分发包
6356 Copy-Item -Path "./publish_portable" -Destination "./dist_arm64" -Recurse
64- # 关键一步:用 temp_arm64 里的原生 EXE 替换掉可移植版本里的 x64 EXE
6557 Remove-Item "./dist_arm64/ExHyperV.exe" -Force
6658 Copy-Item -Path "./temp_arm64/ExHyperV.exe" -Destination "./dist_arm64/ExHyperV.exe"
6759 Compress-Archive -Path ./dist_arm64/* -DestinationPath "ExHyperV_$($ver)_arm64.zip" -Force
You can’t perform that action at this time.
0 commit comments