Files
alttpr-python/build-gui.py
Mike A. Trethewey 4968e72a3b Document stuff, add a couple things
Add Retro World State (Open & Retro on)
Add SpriteSomething plug to sprite selector
Fix Custom Item Pool loading to use disct instead of list
2020-03-03 23:43:43 -08:00

26 lines
631 B
Python

import subprocess
import os
import shutil
# Destination is current dir
DEST_DIRECTORY = '.'
# Check for UPX
if os.path.isdir("upx"):
upx_string = "--upx-dir=upx"
else:
upx_string = ""
# Nuke Build dir
if os.path.isdir("build"):
shutil.rmtree("build")
# Run pyinstaller for Gui
subprocess.run(" ".join(["pyinstaller Gui.spec ",
upx_string,
"-y ",
"--onefile ",
f"--distpath {DEST_DIRECTORY} ",
]),
shell=True)