From fd8d3a25f82abe663b5429fd57b9fed73f032d99 Mon Sep 17 00:00:00 2001 From: Shikiryu Date: Tue, 23 May 2023 10:30:07 +0200 Subject: [PATCH] Make an executable (#13) Co-authored-by: Clement Desmidt Reviewed-on: https://git.shikiryu.com/Shikiryu/DrawingTraining/pulls/13 --- .gitignore | 6 +++++- makefile | 2 ++ requirements.txt | 5 ++--- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 makefile diff --git a/.gitignore b/.gitignore index 6ef96ad..cbcdc08 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,8 @@ demo.py first.py theme.py -/.idea \ No newline at end of file +/.idea +/dist/ +!/dist/drawingtraining +/*.spec +/build/ diff --git a/makefile b/makefile new file mode 100644 index 0000000..dd1c8fe --- /dev/null +++ b/makefile @@ -0,0 +1,2 @@ +build: + pyinstaller main.py --onefile -w --hidden-import="PIL._tkinter_finder" -n drawingtraining \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 3c03d0b..e1732c9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,2 @@ -dearpygui -pathlib -pillow \ No newline at end of file +pillow +pyinstaller \ No newline at end of file