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 DungeonRandomizer.spec ",

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 ",

View File

@@ -86,6 +86,7 @@ if len(BUILD_FILENAMES) > 0:
# .zip if windows
# .tar.gz otherwise
ZIP_FILENAME = os.path.join("..","deploy",os.path.splitext(BUILD_FILENAME)[0])
ZIP_FILENAME = "ALttPDoorRandomizer"
if env["OS_NAME"] == "windows":
make_archive(ZIP_FILENAME,"zip")
ZIP_FILENAME += ".zip"