ci: invoke vpk.dll directly, slim restore step
This commit is contained in:
2 files changed
+7
-21
No files matched your search
@@ -39,17 +39,8 @@ jobs:
|
|||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
Get-Location
|
|
||||||
Get-ChildItem .config -File
|
|
||||||
Write-Output "USERPROFILE=$env:USERPROFILE"
|
|
||||||
Write-Output "DOTNET_CLI_HOME=$env:DOTNET_CLI_HOME"
|
|
||||||
Write-Output "DOTNET_ROOT=$env:DOTNET_ROOT"
|
|
||||||
Write-Output "NUGET_PACKAGES=$env:NUGET_PACKAGES"
|
|
||||||
dotnet --list-sdks
|
|
||||||
dotnet tool restore --tool-manifest .config/dotnet-tools.json
|
dotnet tool restore --tool-manifest .config/dotnet-tools.json
|
||||||
if ($LASTEXITCODE -ne 0) { throw "tool restore failed ($LASTEXITCODE)" }
|
if ($LASTEXITCODE -ne 0) { throw "tool restore failed ($LASTEXITCODE)" }
|
||||||
dotnet tool list
|
|
||||||
Get-ChildItem "$env:USERPROFILE/.dotnet/tools" -Recurse -ErrorAction SilentlyContinue | Select-Object FullName
|
|
||||||
- name: Restore
|
- name: Restore
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: dotnet restore src/RgbLedStripController/RgbLedStripController.csproj --configfile NuGet.Config
|
run: dotnet restore src/RgbLedStripController/RgbLedStripController.csproj --configfile NuGet.Config
|
||||||
@@ -95,17 +86,8 @@ jobs:
|
|||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
Get-Location
|
|
||||||
Get-ChildItem .config -File
|
|
||||||
Write-Output "USERPROFILE=$env:USERPROFILE"
|
|
||||||
Write-Output "DOTNET_CLI_HOME=$env:DOTNET_CLI_HOME"
|
|
||||||
Write-Output "DOTNET_ROOT=$env:DOTNET_ROOT"
|
|
||||||
Write-Output "NUGET_PACKAGES=$env:NUGET_PACKAGES"
|
|
||||||
dotnet --list-sdks
|
|
||||||
dotnet tool restore --tool-manifest .config/dotnet-tools.json
|
dotnet tool restore --tool-manifest .config/dotnet-tools.json
|
||||||
if ($LASTEXITCODE -ne 0) { throw "tool restore failed ($LASTEXITCODE)" }
|
if ($LASTEXITCODE -ne 0) { throw "tool restore failed ($LASTEXITCODE)" }
|
||||||
dotnet tool list
|
|
||||||
Get-ChildItem "$env:USERPROFILE/.dotnet/tools" -Recurse -ErrorAction SilentlyContinue | Select-Object FullName
|
|
||||||
- name: Assert tag matches csproj version
|
- name: Assert tag matches csproj version
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
5. Çıktı: artifacts/velopack/win-x64-stable/
|
5. Çıktı: artifacts/velopack/win-x64-stable/
|
||||||
|
|
||||||
.NOTES
|
.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)
|
Icon: Assets/AppIcon.ico (installer ikonu)
|
||||||
Velopack CLI args: camelCase (--outputDir, --packId, --packTitle, --packAuthors, --packVersion, --packDir, --mainExe)
|
Velopack CLI args: camelCase (--outputDir, --packId, --packTitle, --packAuthors, --packVersion, --packDir, --mainExe)
|
||||||
#>
|
#>
|
||||||
@@ -72,6 +72,10 @@ if (-not $WhatIf) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# 2. vpk pack (args camelCase)
|
# 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 = @(
|
$vpkArgs = @(
|
||||||
"pack",
|
"pack",
|
||||||
"--outputDir", $velopackDir,
|
"--outputDir", $velopackDir,
|
||||||
@@ -85,10 +89,10 @@ $vpkArgs = @(
|
|||||||
)
|
)
|
||||||
Write-Host "vpk pack..." -ForegroundColor Cyan
|
Write-Host "vpk pack..." -ForegroundColor Cyan
|
||||||
if (-not $WhatIf) {
|
if (-not $WhatIf) {
|
||||||
& dotnet tool run vpk $vpkArgs
|
& dotnet $vpkDll $vpkArgs
|
||||||
if ($LASTEXITCODE -ne 0) { throw "vpk pack failed ($LASTEXITCODE)" }
|
if ($LASTEXITCODE -ne 0) { throw "vpk pack failed ($LASTEXITCODE)" }
|
||||||
} else {
|
} 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
|
# 3. Sadece Setup.exe ve Portable.zip'i istenen formata rename et
|
||||||
|
|||||||
Reference in new issue
Block a user