Files
alttpr-python/build-gui.py
Mike A. Trethewey c3a7f69c4b Prelim build scripts
2020-02-23 22:46:50 -08:00

22 lines
543 B
Python

import subprocess
import os
import shutil
DEST_DIRECTORY = '.'
if os.path.isdir("upx"):
upx_string = "--upx-dir=upx"
else:
upx_string = ""
if os.path.isdir("build"):
shutil.rmtree("build")
subprocess.run(" ".join(["pyinstaller Gui.spec ",
upx_string,
"-y ",
"--onefile ",
f"--distpath {DEST_DIRECTORY} ",
]),
shell=True)