From 07a436811e2d42db24ca8c803a76577c72c40215 Mon Sep 17 00:00:00 2001 From: Shikiryu Date: Wed, 7 Jun 2023 00:58:03 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Update=20makefile=20for=20window?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 2c1b4cd..708d95b 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,12 @@ .PHONY: build dist -build: +TOTAL_LOCATION := $(pip show customtkinter | grep Location) +LOCATION=!TOTAL_LOCATION:~0,10! + +build_linux: rm -rf build dist drawingtraining.spec - pyinstaller main.py --onefile -w --hidden-import="PIL._tkinter_finder" -n drawingtraining --add-data "assets:assets" \ No newline at end of file + pyinstaller main.py --onefile -w --hidden-import="PIL._tkinter_finder" -n drawingtraining --add-data "assets:assets" + +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\"