feat: add build script
This commit is contained in:
21
build.py
Normal file
21
build.py
Normal file
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user