diff --git a/scripts/release/package-velopack.ps1 b/scripts/release/package-velopack.ps1 index abc1cc4..17277ab 100644 --- a/scripts/release/package-velopack.ps1 +++ b/scripts/release/package-velopack.ps1 @@ -11,6 +11,7 @@ .NOTES Velopack CLI: dotnet tool restore ile yüklenen vpk kullanılır Icon: Assets/AppIcon.ico (installer ikonu) + Velopack CLI args: camelCase (--outputDir, --packId, --packTitle, --packAuthors, --packVersion, --packDir) #> param( @@ -60,16 +61,16 @@ if (-not $WhatIf) { Write-Host "[WhatIf] dotnet $publishArgs" } -# 2. vpk pack +# 2. vpk pack (args camelCase) $vpkArgs = @( "pack", - "--output-dir", $velopackDir, - "--pack-id", "Fristy.RgbLedStripController", - "--pack-title", "RGB Led Strip Controller", - "--pack-authors", "fristy", - "--pack-version", $version, + "--outputDir", $velopackDir, + "--packId", "Fristy.RgbLedStripController", + "--packTitle", "RGB Led Strip Controller", + "--packAuthors", "fristy", + "--packVersion", $version, "--icon", $iconPath, - $stagedPublishDir + "--packDir", $stagedPublishDir ) Write-Host "vpk pack..." -ForegroundColor Cyan if (-not $WhatIf) { @@ -80,5 +81,9 @@ if (-not $WhatIf) { Write-Host "Done. Output: $velopackDir" -ForegroundColor Green if (-not $WhatIf) { - Get-ChildItem $velopackDir | ForEach-Object { Write-Host " $($_.Name) - $([math]::Round($_.Length/1MB,2)) MB" } + if (Test-Path $velopackDir) { + Get-ChildItem $velopackDir | ForEach-Object { Write-Host " $($_.Name) - $([math]::Round($_.Length/1MB,2)) MB" } + } else { + Write-Host "Warning: $velopackDir not found" -ForegroundColor Yellow + } } \ No newline at end of file