job-scrapper/makefile

29 lines
779 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 --output-dir=dist/ lib/gui.py
make datafiles
wine-nuitka-zip:
cd dist/; zip -r wine-nuitka/win64-nuitka.zip db/ gui.dist/
clean:
rm dist/db -r