From 7842e017a09e5f61971a05036c01d9c40e52260d Mon Sep 17 00:00:00 2001 From: Axorax <78349410+Axorax@users.noreply.github.com> Date: Sun, 5 May 2024 15:06:23 +0600 Subject: [PATCH] awd --- build-cli.sh | 1 - build.bat | 7 +++++++ build.sh | 8 +++++++- 3 files changed, 14 insertions(+), 2 deletions(-) delete mode 100644 build-cli.sh create mode 100644 build.bat diff --git a/build-cli.sh b/build-cli.sh deleted file mode 100644 index 7d221ba..0000000 --- a/build-cli.sh +++ /dev/null @@ -1 +0,0 @@ -pyinstaller --name="tkforge" --onefile --paths=env/Lib/site-packages tkforge.py --icon=assets/icon.png \ No newline at end of file diff --git a/build.bat b/build.bat new file mode 100644 index 0000000..966ff1c --- /dev/null +++ b/build.bat @@ -0,0 +1,7 @@ +@echo off + +if "%1" == "cli" ( + pyinstaller --name="tkforge-cli" --onefile --paths=env/Lib/site-packages tkforge.py --icon=assets/icon.png +) else ( + pyinstaller --name="TkForge" --onefile --paths=env/Lib/site-packages --add-data="assets;assets" gui.py --noconsole --icon=assets/icon.png +) diff --git a/build.sh b/build.sh index 05a8266..15d6957 100644 --- a/build.sh +++ b/build.sh @@ -1 +1,7 @@ -pyinstaller --name="TkForge" --onefile --paths=env/Lib/site-packages --add-data="assets:assets" gui.py --noconsole --icon=assets/icon.png \ No newline at end of file +#!/bin/bash + +if [ "$1" == "cli" ]; then + pyinstaller --name="tkforge-cli" --onefile --paths=env/Lib/site-packages tkforge.py --icon=assets/icon.png +else + pyinstaller --name="TkForge" --onefile --paths=env/Lib/site-packages --add-data="assets:assets" gui.py --noconsole --icon=assets/icon.png +fi