ci: fix vpk pack argument names (camelCase: --outputDir, --packId, --packTitle, --packAuthors, --packVersion, --packDir)
CI / build (push) Successful in 1m9s
CI / test (push) Successful in 46s
CI / release (push) Failing after 50s

This commit is contained in:
fristy committed 2026-09-05 02:21:41 +03:00
1 parent 46439201ef
commit f82ace6b40
1 file changed
+12 -7
+12 -7
View File
@@ -11,6 +11,7 @@
.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
Icon: Assets/AppIcon.ico (installer ikonu) Icon: Assets/AppIcon.ico (installer ikonu)
Velopack CLI args: camelCase (--outputDir, --packId, --packTitle, --packAuthors, --packVersion, --packDir)
#> #>
param( param(
@@ -60,16 +61,16 @@ if (-not $WhatIf) {
Write-Host "[WhatIf] dotnet $publishArgs" Write-Host "[WhatIf] dotnet $publishArgs"
} }
# 2. vpk pack # 2. vpk pack (args camelCase)
$vpkArgs = @( $vpkArgs = @(
"pack", "pack",
"--output-dir", $velopackDir, "--outputDir", $velopackDir,
"--pack-id", "Fristy.RgbLedStripController", "--packId", "Fristy.RgbLedStripController",
"--pack-title", "RGB Led Strip Controller", "--packTitle", "RGB Led Strip Controller",
"--pack-authors", "fristy", "--packAuthors", "fristy",
"--pack-version", $version, "--packVersion", $version,
"--icon", $iconPath, "--icon", $iconPath,
$stagedPublishDir "--packDir", $stagedPublishDir
) )
Write-Host "vpk pack..." -ForegroundColor Cyan Write-Host "vpk pack..." -ForegroundColor Cyan
if (-not $WhatIf) { if (-not $WhatIf) {
@@ -80,5 +81,9 @@ if (-not $WhatIf) {
Write-Host "Done. Output: $velopackDir" -ForegroundColor Green Write-Host "Done. Output: $velopackDir" -ForegroundColor Green
if (-not $WhatIf) { if (-not $WhatIf) {
if (Test-Path $velopackDir) {
Get-ChildItem $velopackDir | ForEach-Object { Write-Host " $($_.Name) - $([math]::Round($_.Length/1MB,2)) MB" } Get-ChildItem $velopackDir | ForEach-Object { Write-Host " $($_.Name) - $([math]::Round($_.Length/1MB,2)) MB" }
} else {
Write-Host "Warning: $velopackDir not found" -ForegroundColor Yellow
}
} }