🚀 Modify windows makefile

This commit is contained in:
Shikiryu 2024-06-10 21:49:04 +02:00
parent ee8968cbab
commit 328b7a0e49

View File

@ -1,7 +1,14 @@
.PHONY: build dist .PHONY: build dist
TOTAL_LOCATION := $(pip show customtkinter | grep Location) .ONESHELL:
LOCATION=!TOTAL_LOCATION:~0,10! VENV_DIR=.venv
ACTIVATE_VENV:=. $(VENV_DIR)/bin/activate
LOCATION:= $(shell pip show customtkinter | grep Location | cut -c 11-)
install:
python3 -m venv "$(VENV_DIR)"
$(ACTIVATE_VENV)
pip install --upgrade --requirement requirements.txt
build_linux: build_linux:
rm -rf build dist drawingtraining.spec rm -rf build dist drawingtraining.spec
@ -9,4 +16,4 @@ build_linux:
build_windows: build_windows:
rm -rf build dist drawingtraining.spec rm -rf build dist drawingtraining.spec
pyinstaller main.py --onefile -w --hidden-import="PIL._tkinter_finder" -n drawingtraining --add-data "assets;assets" --add-data "${LOCATION}\customtkinter;customtkinter\" pyinstaller main.py --onefile -w --hidden-import="PIL._tkinter_finder" -n drawingtraining --add-data "assets;assets" --add-data "$(LOCATION)\customtkinter;customtkinter" --icon="assets/icons/logo-dt.png"