2022-01-19 16:31:31 +01:00
|
|
|
#!/bin/bash
|
|
|
|
cd src
|
|
|
|
|
2022-01-19 22:03:37 +01:00
|
|
|
#pyinstaller --specpath ../dist/cspec \
|
|
|
|
# --workpath ../dist/cbuild \
|
|
|
|
# --distpath ../dist/cdist \
|
|
|
|
# --add-data ../../src/py_to_uxf/appsettings.json:. \
|
|
|
|
# --hidden-import pynput.keyboard._xorg \
|
|
|
|
# --hidden-import pynput.mouse._xorg \
|
|
|
|
# --hidden-import pyfiglet.fonts \
|
|
|
|
# --collect-data pyfiglet \
|
|
|
|
# -n py_to_uxf \
|
|
|
|
# -y \
|
|
|
|
# py_to_uxf/main.py
|
|
|
|
|
|
|
|
build=../dist/cbuild/
|
|
|
|
python -m nuitka \
|
|
|
|
--follow-imports \
|
|
|
|
--include-package=pkg_resources \
|
|
|
|
--include-package=pynput.keyboard._xorg \
|
|
|
|
--include-package=pynput.mouse._xorg \
|
|
|
|
--include-package=Xlib \
|
|
|
|
--output-dir=$build \
|
2022-01-19 16:31:31 +01:00
|
|
|
py_to_uxf/main.py
|
|
|
|
|
2022-01-19 22:03:37 +01:00
|
|
|
|
|
|
|
file="py_to_uxf/appsettings.json"
|
|
|
|
if [ -f "$file" ]; then
|
|
|
|
if [ -d "$build/main.dist/" ]; then
|
|
|
|
build=$build/main.dist/
|
|
|
|
fi
|
|
|
|
cp $file $build
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd ../
|