ci: fix vpk pack argument names (camelCase: --outputDir, --packId, --packTitle, --packAuthors, --packVersion, --packDir)
This commit is contained in:
1 file changed
+12
-7
@@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user