Prepare Void Bastion alpha 7 release
This commit is contained in:
1 parent
56077e88a5
commit
e63e08ddde
18 files changed
+799
-95
No files matched your search
@@ -2,11 +2,30 @@ param(
|
||||
[Parameter(Mandatory = $true)]
|
||||
[string]$GodotExe,
|
||||
|
||||
[Parameter(Mandatory = $true)]
|
||||
[string]$MakeNsisExe
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
$nsisCandidates = @()
|
||||
if (-not [string]::IsNullOrWhiteSpace($MakeNsisExe)) {
|
||||
$nsisCandidates += $MakeNsisExe
|
||||
} else {
|
||||
$pathNsis = Get-Command "makensis.exe" -ErrorAction SilentlyContinue
|
||||
if ($pathNsis) {
|
||||
$nsisCandidates += $pathNsis.Source
|
||||
}
|
||||
$nsisCandidates += @(
|
||||
(Join-Path $env:LOCALAPPDATA "Programs\NSIS-3.13\makensis.exe"),
|
||||
"C:\Program Files (x86)\NSIS\makensis.exe",
|
||||
"C:\Program Files\NSIS\makensis.exe"
|
||||
)
|
||||
$MakeNsisExe = $nsisCandidates | Where-Object { Test-Path -LiteralPath $_ -PathType Leaf } | Select-Object -First 1
|
||||
}
|
||||
|
||||
if ([string]::IsNullOrWhiteSpace($MakeNsisExe)) {
|
||||
throw "NSIS wurde nicht gefunden. Installiere NSIS oder übergib -MakeNsisExe mit dem Pfad zu makensis.exe."
|
||||
}
|
||||
|
||||
$projectRoot = (Resolve-Path (Join-Path $PSScriptRoot "..\..")).Path
|
||||
$gameExe = Join-Path $projectRoot "build\windows\Void-Bastion.exe"
|
||||
$installer = Join-Path $projectRoot "dist\Void-Bastion-Setup-x64.exe"
|
||||
|
||||
Reference in new issue
Block a user