job-scrapper/makefile
2024-08-12 13:13:30 +02:00

27 lines
682 B
Makefile

#Works but is fucking big
#Single file version:
#pyinstaller lib/gui.py --onefile --add-data ./db/:./db
pypath := /home/ccppi2/.wine/drive_c/users/ccppi2/AppData/Local/Programs/Python/Python312/
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
wine-build:
wine64 $(pypath)/python.exe $(pypath)/Lib/site-packages/pyinstaller lib/gui.py
wine-nukita:
wine64 nuitka --standalone --enable-plugin=pyside6 --include-qt-plugins=sqldrivers lib/gui.py
make datafiles
clean:
rm dist/db -r