18 lines
644 B
Python
18 lines
644 B
Python
import os
|
|
import shutil
|
|
|
|
|
|
def build_release():
|
|
print("Building Application")
|
|
os.system(
|
|
"uv run python -m nuitka --standalone --output-dir=build --include-package=PyQt6 --include-package=pygments --include-data-dir=./config=config --include-data-dir=./docs=docs --include-data-dir=./icons=icons --include-data-dir=./.venv/Lib/site-packages/PyQt6/=PyQt6 --windows-icon-from-ico=icons/icon.ico main.py"
|
|
)
|
|
shutil.copytree(
|
|
".venv/Lib/site-packages/PyQt6/", "build/main.dist/PyQt6/", dirs_exist_ok=True
|
|
)
|
|
shutil.move("build/main.dist", "build/LibrarySystem")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
build_release()
|