ci: invoke vpk.dll directly, slim restore step
This commit is contained in:
2 files changed
+7
-21
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user