set windows-shell := ["C:\\Program Files\\Git\\bin\\sh.exe","-c"] # Run the picostream GUI application gui: PYTHONPATH=. uv run picostream/main.py # 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