Moar Mac sanity checks; rename archive

This commit is contained in:
Mike A. Trethewey
2020-02-26 03:58:58 -08:00
parent cae638d7aa
commit f0d2e28923
3 changed files with 5 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
import subprocess
import os
import shutil
import sys
DEST_DIRECTORY = '.'
@@ -9,7 +10,7 @@ if os.path.isdir("upx"):
else:
upx_string = ""
if os.path.isdir("build"):
if os.path.isdir("build") and not sys.platform.find("mac") and not sys.platform.find("osx"):
shutil.rmtree("build")
subprocess.run(" ".join(["pyinstaller Gui.spec ",