Moar Mac sanity checks; rename archive
This commit is contained in:
@@ -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 ",
|
||||
|
||||
@@ -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 ",
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user