Fix corrupted Windows export in alpha 8
This commit is contained in:
1 parent
e63e08ddde
commit
9b0eab4273
7 files changed
+31
-10
No files matched your search
@@ -53,6 +53,15 @@ try {
|
||||
if ($LASTEXITCODE -ne 0 -or -not (Test-Path -LiteralPath $gameExe)) {
|
||||
throw "Der Godot-Windows-Export ist fehlgeschlagen."
|
||||
}
|
||||
|
||||
# Prüft, dass Godot die eingebetteten Projektdaten tatsächlich laden kann,
|
||||
# bevor NSIS daraus einen Installer erstellt. Ein bloß vorhandenes EXE reicht
|
||||
# nicht: ein defektes project.binary würde erst beim Start des Spiels auffallen.
|
||||
$launchOutput = & $gameExe --headless --quit 2>&1 | Out-String
|
||||
$launchExitCode = $LASTEXITCODE
|
||||
if (($null -ne $launchExitCode -and $launchExitCode -ne 0) -or $launchOutput -match "Corrupted header in binary project\.binary|Couldn't load project data|Is the \.pck file missing") {
|
||||
throw "Der exportierte Windows-Build kann seine Projektdaten nicht laden. NSIS-Installer wurde nicht erstellt. Ausgabe: $launchOutput"
|
||||
}
|
||||
}
|
||||
finally {
|
||||
Set-Content -LiteralPath $projectFile -Value $projectConfiguration -NoNewline
|
||||
|
||||
@@ -6,7 +6,7 @@ RequestExecutionLevel user
|
||||
!include "LogicLib.nsh"
|
||||
|
||||
!define PRODUCT_NAME "Void Bastion"
|
||||
!define PRODUCT_VERSION "0.1.0-alpha.7"
|
||||
!define PRODUCT_VERSION "0.1.0-alpha.8"
|
||||
!define PRODUCT_PUBLISHER "GerGames"
|
||||
!define PRODUCT_WEBSITE "https://void-bastion.gergames.de/"
|
||||
!define PRODUCT_EXE "Void-Bastion.exe"
|
||||
@@ -21,7 +21,7 @@ BrandingText "GerGames"
|
||||
ShowInstDetails show
|
||||
ShowUninstDetails show
|
||||
|
||||
VIProductVersion "0.1.0.7"
|
||||
VIProductVersion "0.1.0.8"
|
||||
VIAddVersionKey /LANG=1031 "ProductName" "${PRODUCT_NAME}"
|
||||
VIAddVersionKey /LANG=1031 "CompanyName" "${PRODUCT_PUBLISHER}"
|
||||
VIAddVersionKey /LANG=1031 "FileDescription" "${PRODUCT_NAME} Setup"
|
||||
|
||||
Reference in new issue
Block a user