1 parent 92280dd commit 25689f1Copy full SHA for 25689f1
1 file changed
.github/workflows/release.yml
@@ -83,11 +83,13 @@ jobs:
83
# 创建 .icpx (先 .zip 再重命名)
84
$outDir = "SamplePlugin/packages"
85
New-Item -ItemType Directory -Path $outDir -Force | Out-Null
86
- $zipPath = Join-Path $outDir "$pluginId.zip"
87
- $icpxPath = Join-Path $outDir "$pluginId.icpx"
+ $zipPath = "$outDir/$pluginId.zip"
+ $icpxName = "$pluginId.icpx"
88
Compress-Archive -Path "$tempDir/*" -DestinationPath $zipPath -Force
89
+ # Rename-Item 不支持跨目录重命名,用 Move-Item 替代
90
+ $icpxPath = "$outDir/$icpxName"
91
if (Test-Path $icpxPath) { Remove-Item $icpxPath }
- Rename-Item $zipPath $icpxPath
92
+ Move-Item $zipPath $icpxPath -Force
93
94
# 计算 SHA256
95
$hash = (Get-FileHash $icpxPath -Algorithm SHA256).Hash.ToLower()
0 commit comments