Files
SemesterapparatsManager/build.py
2025-06-25 14:37:41 +02:00

22 lines
573 B
Python

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}")