aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Scholten2025-10-14 14:04:37 +1000
committerSam Scholten2025-10-14 14:05:00 +1000
commit28db0686a5393704d3b5c13d68dbd654fc3ecbba (patch)
tree098aed433eedf5a6e862056f3fad60641e70f52e
parentcbf91fa2ea43d637b1049ecbb79e752a83bac6ed (diff)
downloadpicostream-28db0686a5393704d3b5c13d68dbd654fc3ecbba.tar.gz
picostream-28db0686a5393704d3b5c13d68dbd654fc3ecbba.zip
Condense FFI_FLAG Python script to a single line in justfile
-rw-r--r--justfile10
1 files changed, 1 insertions, 9 deletions
diff --git a/justfile b/justfile
index d3fa021..fe942fc 100644
--- a/justfile
+++ b/justfile
@@ -8,14 +8,6 @@ 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
-if sys.platform == "win32":
- dlls_dir = os.path.join(os.path.dirname(sys.executable), "DLLs")
- ffi_dll_path = next(glob.iglob(os.path.join(dlls_dir, "libffi-*.dll")), None)
- if ffi_dll_path:
- # The separator for --add-binary is platform-dependent (os.pathsep)
- print(f"--add-binary \"{ffi_dll_path}{os.pathsep}.\"")
-'`
+ 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