aboutsummaryrefslogtreecommitdiff
path: root/justfile
blob: d3fa021d3fde392a623c95a05a306c0ba2828f61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
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}.\"")
'`
    uv run pyinstaller --onefile --windowed --name PicoStream {{FFI_FLAG}} picostream/main.py