2024-08-09 07:33:40 +00:00
|
|
|
#Works but is fucking big
|
|
|
|
#Single file version:
|
|
|
|
#pyinstaller lib/gui.py --onefile --add-data ./db/:./db
|
2024-08-09 10:21:46 +00:00
|
|
|
pypath := /home/ccppi2/.wine/drive_c/users/ccppi2/AppData/Local/Programs/Python/Python312/
|
2024-08-09 07:33:40 +00:00
|
|
|
all:gui cli datafiles
|
|
|
|
|
|
|
|
gui:
|
|
|
|
pyinstaller lib/gui.py
|
|
|
|
make datafiles
|
|
|
|
cli:
|
|
|
|
pyinstaller lib/main.py
|
|
|
|
make datafiles
|
|
|
|
datafiles:
|
|
|
|
make db-dir
|
|
|
|
cp ./db/Cantons.db dist/db/
|
|
|
|
cp ./db/sqlite3.db dist/db/
|
|
|
|
cp ./lib/conf dist/gui/
|
|
|
|
db-dir:
|
|
|
|
mkdir -p dist/db
|
2024-08-09 10:21:46 +00:00
|
|
|
wine-build:
|
|
|
|
wine64 $(pypath)/python.exe $(pypath)/Lib/site-packages/pyinstaller lib/gui.py
|
2024-08-09 12:24:55 +00:00
|
|
|
wine-nukita:
|
|
|
|
wine64 nuitka --standalone --enable-plugin=pyside6 --include-qt-plugins=sqldrivers lib/gui.py
|
2024-08-12 11:13:30 +00:00
|
|
|
make datafiles
|
2024-08-09 07:33:40 +00:00
|
|
|
clean:
|
|
|
|
rm dist/db -r
|