Add 32-bit portable and installer build support

This commit is contained in:
dasp committed 2026-10-16 11:56:48 +02:00
1 parent a200ce37b5
commit 2a1640624e
4 files changed
+37 -16

No files matched your search

+4 -4
View File
@@ -1,12 +1,12 @@
param([string]$IsccPath = "${env:ProgramFiles(x86)}\Inno Setup 7\ISCC.exe")
param([ValidateSet("x64", "x86")][string]$Architecture = "x64", [string]$IsccPath = "${env:ProgramFiles(x86)}\Inno Setup 7\ISCC.exe")
$ErrorActionPreference = 'Stop'
$projectRoot = Split-Path $PSScriptRoot -Parent
if (!(Test-Path -LiteralPath $IsccPath)) { throw "Inno Setup compiler not found. Supply -IsccPath with the path to ISCC.exe." }
Push-Location $projectRoot
try {
dotnet publish Orbit.csproj -c Release -r win-x64 --self-contained true -p:PublishSingleFile=false -p:DebugType=None -p:DebugSymbols=false -o release/installer-payload
dotnet publish Orbit.csproj -c Release -r "win-$Architecture" --self-contained true -p:PublishSingleFile=false -p:DebugType=None -p:DebugSymbols=false -o "release/installer-payload-$Architecture"
if ($LASTEXITCODE -ne 0) { throw 'Publish failed.' }
Copy-Item README.txt release/installer-payload/README.txt
& $IsccPath installer/Orbit.iss
Copy-Item README.txt "release/installer-payload-$Architecture/README.txt"
& $IsccPath "/DArch=$Architecture" installer/Orbit.iss
if ($LASTEXITCODE -ne 0) { throw 'Installer compilation failed.' }
} finally { Pop-Location }