Improved project for compiling

This commit is contained in:
2022-01-19 16:31:31 +01:00
parent 00484711ab
commit fa5157298c
3 changed files with 35 additions and 8 deletions

16
scripts/compile.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
cd src
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
cd ../

5
scripts/run.sh Normal file
View File

@@ -0,0 +1,5 @@
cd dist/cdist/py_to_uxf
time ./py_to_uxf -p ../../../../sh_gismo/src -o gismo.uxf
cd ../../../