ci: invoke vpk.dll directly, slim restore step
CI / release (push) Successful in 13m54s
CI / build-and-test (push) Successful in 5m24s

This commit is contained in:
fristy committed 2026-09-05 16:23:07 +03:00
1 parent ead3315170
commit a7413c4b0e
2 files changed
+7 -21

No files matched your search

+7 -3
View File
@@ -10,7 +10,7 @@
5. Çıktı: artifacts/velopack/win-x64-stable/
.NOTES
Velopack CLI: dotnet tool restore ile yüklenen vpk kullanılır
Velopack CLI: NuGet paketinden dogrudan calistirilan vpk.dll kullanilir
Icon: Assets/AppIcon.ico (installer ikonu)
Velopack CLI args: camelCase (--outputDir, --packId, --packTitle, --packAuthors, --packVersion, --packDir, --mainExe)
#>
@@ -72,6 +72,10 @@ if (-not $WhatIf) {
}
# 2. vpk pack (args camelCase)
$nugetPkgs = $env:NUGET_PACKAGES
if (-not $nugetPkgs) { $nugetPkgs = Join-Path $env:USERPROFILE ".nuget/packages" }
$vpkDll = Join-Path $nugetPkgs "vpk/0.0.1298/tools/net8.0/any/vpk.dll"
if (-not (Test-Path $vpkDll)) { throw "vpk.dll not found at $vpkDll" }
$vpkArgs = @(
"pack",
"--outputDir", $velopackDir,
@@ -85,10 +89,10 @@ $vpkArgs = @(
)
Write-Host "vpk pack..." -ForegroundColor Cyan
if (-not $WhatIf) {
& dotnet tool run vpk $vpkArgs
& dotnet $vpkDll $vpkArgs
if ($LASTEXITCODE -ne 0) { throw "vpk pack failed ($LASTEXITCODE)" }
} else {
Write-Host "[WhatIf] dotnet tool run vpk $vpkArgs"
Write-Host "[WhatIf] dotnet $vpkDll $vpkArgs"
}
# 3. Sadece Setup.exe ve Portable.zip'i istenen formata rename et