mirror of https://github.com/Chizi123/Arch-autobuild-repo.git

Joel Grunbaum
2 days ago f7c40d48c0727a96843c85990cc36ae5a9ac6888
scripts/build_binary.py
@@ -6,6 +6,7 @@
import subprocess
import sys
import os
import shutil
from pathlib import Path
def build():
@@ -27,13 +28,19 @@
    entry_script.write_text("from archbuild.cli import main\nif __name__ == '__main__':\n    main()\n")
    # PyInstaller command
    cmd = [
        "pyinstaller",
    pyinstaller_exe = shutil.which("pyinstaller")
    if pyinstaller_exe:
        cmd = [pyinstaller_exe]
    else:
        cmd = [sys.executable, "-m", "PyInstaller"]
    cmd += [
        "--onefile",
        "--name", "archbuild-bin",
        "--paths", str(src),
        "--clean",
        "--collect-all", "archbuild",
        "--collect-all", "rich",
        str(entry_script)
    ]