Prelim build scripts

This commit is contained in:
Mike A. Trethewey
2020-02-23 22:46:50 -08:00
parent 97f771fe42
commit c3a7f69c4b
7 changed files with 173 additions and 4 deletions

21
build-gui.py Normal file
View File

@@ -0,0 +1,21 @@
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)