aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorSam Scholten2025-10-14 14:20:16 +1000
committerSam Scholten2025-10-14 14:29:53 +1000
commit614ec191a2fb7ed15cee2262035011ec2b910568 (patch)
tree010b9c5aced17b3c6183650a8f47e54ab37dd69b /justfile
parent28db0686a5393704d3b5c13d68dbd654fc3ecbba (diff)
downloadpicostream-614ec191a2fb7ed15cee2262035011ec2b910568.tar.gz
picostream-614ec191a2fb7ed15cee2262035011ec2b910568.zip
Implement Python build script for robust PyInstaller GUI build
Diffstat (limited to 'justfile')
-rw-r--r--justfile3
1 files changed, 1 insertions, 2 deletions
diff --git a/justfile b/justfile
index fe942fc..cef7016 100644
--- a/justfile
+++ b/justfile
@@ -8,6 +8,5 @@ gui:
# Build the picostream GUI executable
build-gui:
uv pip install pyinstaller pyinstaller-hooks-contrib
- FFI_FLAG := `uv run python -c 'import sys, os, glob; ffi_dll_path = next(glob.iglob(os.path.join(os.path.dirname(sys.executable), "DLLs", "libffi-*.dll")), None) if sys.platform == "win32" else None; ffi_dll_path and print(f"--add-binary \"{ffi_dll_path}{os.pathsep}.\"")'`
- uv run pyinstaller --onefile --windowed --name PicoStream {{FFI_FLAG}} picostream/main.py
+ uv run python tools/build_gui.py