From 328b7a0e494d66a86c7554440b937c4c72c9ccdf Mon Sep 17 00:00:00 2001 From: Shikiryu Date: Mon, 10 Jun 2024 21:49:04 +0200 Subject: [PATCH] :rocket: Modify windows makefile --- makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index 708d95b..4f3f72f 100644 --- a/makefile +++ b/makefile @@ -1,7 +1,14 @@ .PHONY: build dist -TOTAL_LOCATION := $(pip show customtkinter | grep Location) -LOCATION=!TOTAL_LOCATION:~0,10! +.ONESHELL: +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: rm -rf build dist drawingtraining.spec @@ -9,4 +16,4 @@ build_linux: build_windows: 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"