Add PyInstaller Windows release build system.

Frozen builds resolve paths correctly, stage portable onedir output, and zip releases for distribution.
This commit is contained in:
Dr Jones
2026-05-22 19:20:06 -07:00
parent bef3de1245
commit 05a32015db
10 changed files with 548 additions and 24 deletions

12
build/pyi_rth_godcwak.py Normal file
View File

@@ -0,0 +1,12 @@
"""
PyInstaller runtime hook — normalize frozen paths before application imports.
"""
import os
import sys
if getattr(sys, "frozen", False):
os.environ.setdefault("GODCWAK_FROZEN", "1")
# Ensure the exe directory is on PATH for any subprocess helpers.
exe_dir = os.path.dirname(sys.executable)
if exe_dir and exe_dir not in os.environ.get("PATH", ""):
os.environ["PATH"] = exe_dir + os.pathsep + os.environ.get("PATH", "")