Skip to content

Commit 6289b18

Browse files
authored
Update publish.yml
1 parent 323a4f9 commit 6289b18

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

.github/workflows/publish.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)