diff --git a/build-dr.py b/build-dr.py index 120028d9..06b2d510 100644 --- a/build-dr.py +++ b/build-dr.py @@ -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 ", diff --git a/build-gui.py b/build-gui.py index 3f63548d..35965d3e 100644 --- a/build-gui.py +++ b/build-gui.py @@ -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 ", diff --git a/resources/ci/common/prepare_release.py b/resources/ci/common/prepare_release.py index 98348da7..5c8f776f 100644 --- a/resources/ci/common/prepare_release.py +++ b/resources/ci/common/prepare_release.py @@ -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"