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:
12
build/pyi_rth_godcwak.py
Normal file
12
build/pyi_rth_godcwak.py
Normal 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", "")
|
||||
Reference in New Issue
Block a user