@davoodmehraban89 / Aram-2 Mirror · read-only / commits / 477d056
Fork 0

Mirrored from https://github.com/davoodmehraban89/Aram.git

Synced Dec 3, 23:15 UTC

build(windows): reproducible PyInstaller onefile native pilot EXE script

davoodmehraban89 committed Oct 30, 2026 at 23:38 UTC 477d056934321e7047a936610c6d1119ed934a87
1 file changed +23
backend/desktop/build_windows_exe.ps1 new
+23
@@ -0,0 +1,23 @@
1 +# Build only on a Windows machine with Python, Tkinter and PyInstaller installed.
2 +# This is an UNSIGNED, UNRELEASED pilot; never claim financial readiness.
3 +$ErrorActionPreference = "Stop"
4 +Set-StrictMode -Version Latest
5 +
6 +$BackendDir = (Resolve-Path (Join-Path $PSScriptRoot "..")).Path
7 +Push-Location $BackendDir
8 +try {
9 + & python -m PyInstaller --noconfirm --clean --onefile --windowed `
10 + --name "AramPilot-UNRELEASED" --paths "src" `
11 + "desktop/aram_pilot_entry.py"
12 + if ($LASTEXITCODE -ne 0) {
13 + throw "PyInstaller exited with error code $LASTEXITCODE"
14 + }
15 + $ExePath = Join-Path $BackendDir "dist/AramPilot-UNRELEASED.exe"
16 + if (-not (Test-Path -LiteralPath $ExePath -PathType Leaf)) {
17 + throw "PyInstaller did not produce the expected Windows EXE"
18 + }
19 + Write-Host "Unsigned, unreleased desktop pilot built: $ExePath"
20 +}
21 +finally {
22 + Pop-Location
23 +}