ci: rename Velopack outputs to RGBLedStripController-Setup-v{version}-x64.exe format
This commit is contained in:
1 file changed
+16
-1
@@ -6,7 +6,8 @@
|
|||||||
1. Proje dosyasından sürüm okur
|
1. Proje dosyasından sürüm okur
|
||||||
2. dotnet publish (self-contained, single-file, win-x64)
|
2. dotnet publish (self-contained, single-file, win-x64)
|
||||||
3. vpk pack ile Setup.exe ve Portable.zip üretir
|
3. vpk pack ile Setup.exe ve Portable.zip üretir
|
||||||
4. Çıktı: artifacts/velopack/win-x64-stable/
|
4. Çıktı dosyalarını istenen formata rename eder: RGBLedStripController-Setup-v{version}-x64.exe, RGBLedStripController-Portable-v{version}-x64.zip
|
||||||
|
5. Çıktı: artifacts/velopack/win-x64-stable/
|
||||||
|
|
||||||
.NOTES
|
.NOTES
|
||||||
Velopack CLI: dotnet tool restore ile yüklenen vpk kullanılır
|
Velopack CLI: dotnet tool restore ile yüklenen vpk kullanılır
|
||||||
@@ -80,6 +81,20 @@ if (-not $WhatIf) {
|
|||||||
Write-Host "[WhatIf] dotnet tool run vpk $vpkArgs"
|
Write-Host "[WhatIf] dotnet tool run vpk $vpkArgs"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# 3. Dosyaları istenen formata rename et
|
||||||
|
$setupSrc = Join-Path $velopackDir "Fristy.RgbLedStripController-win-Setup.exe"
|
||||||
|
$setupDst = Join-Path $velopackDir "RGBLedStripController-Setup-v${version}-x64.exe"
|
||||||
|
$portableSrc = Join-Path $velopackDir "Fristy.RgbLedStripController-win-Portable.zip"
|
||||||
|
$portableDst = Join-Path $velopackDir "RGBLedStripController-Portable-v${version}-x64.zip"
|
||||||
|
|
||||||
|
if (-not $WhatIf) {
|
||||||
|
if (Test-Path $setupSrc) { Move-Item -Force $setupSrc $setupDst; Write-Host "Renamed: $($setupDst)" }
|
||||||
|
if (Test-Path $portableSrc) { Move-Item -Force $portableSrc $portableDst; Write-Host "Renamed: $($portableDst)" }
|
||||||
|
} else {
|
||||||
|
Write-Host "[WhatIf] Would rename: $setupSrc -> $setupDst"
|
||||||
|
Write-Host "[WhatIf] Would rename: $portableSrc -> $portableDst"
|
||||||
|
}
|
||||||
|
|
||||||
Write-Host "Done. Output: $velopackDir" -ForegroundColor Green
|
Write-Host "Done. Output: $velopackDir" -ForegroundColor Green
|
||||||
if (-not $WhatIf) {
|
if (-not $WhatIf) {
|
||||||
if (Test-Path $velopackDir) {
|
if (Test-Path $velopackDir) {
|
||||||
|
|||||||
Reference in new issue
Block a user