feat(desktop): add Windows EXE packaging and guarded CI smoke workflow
davoodmehraban89 committed
Oct 31, 2026 at 18:33 UTC
0e24bc941ece4b0256079c77bd48c5eb72225a5d
1 file changed
+22
backend/desktop/build_five_statement_windows.ps1
new
+22
@@ -0,0 +1,22 @@
1
+# Build on Windows only. Output is UNSIGNED, NONOFFICIAL and UNRELEASED.
2
+$ErrorActionPreference = "Stop"
3
+Set-StrictMode -Version Latest
4
+
5
+$BackendDir = (Resolve-Path (Join-Path $PSScriptRoot "..")).Path
6
+Push-Location $BackendDir
7
+try {
8
+ & python -m PyInstaller --noconfirm --clean --onefile --windowed `
9
+ --name "AramFivePilot-UNRELEASED" --paths "src" `
10
+ "desktop/aram_five_statement_entry.py"
11
+ if ($LASTEXITCODE -ne 0) {
12
+ throw "PyInstaller failed: exit $LASTEXITCODE"
13
+ }
14
+ $ExePath = Join-Path $BackendDir "dist/AramFivePilot-UNRELEASED.exe"
15
+ if (-not (Test-Path -LiteralPath $ExePath -PathType Leaf)) {
16
+ throw "No executable produced"
17
+ }
18
+ Write-Host "Unsigned local inspection build: $ExePath"
19
+}
20
+finally {
21
+ Pop-Location
22
+}