From edd57011e06e2e967a0ad8957bba450be1a48681 Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Wed, 25 Jun 2025 14:37:41 +0200 Subject: [PATCH] feat: add build script --- build.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 build.py diff --git a/build.py b/build.py new file mode 100644 index 0000000..231e221 --- /dev/null +++ b/build.py @@ -0,0 +1,21 @@ +import os + + +with open(".version", "r") as version_file: + version = version_file.read().strip() + +print("Building the project...") +build = input("Include console in build? (y/n): ").strip().lower() + + +command = "uv run python -m nuitka --standalone --output-dir=dist --include-data-dir=./config=config --include-data-dir=./docs=docs --include-data-dir=./icons=icons --enable-plugin=pyside6" +executable = "main.py" + + +if build == 'y': + + os.system(f"{command} {executable}") +else: + command += " --windows-console-mode=disable" + os.system(f"{command} {executable}") +