Moar Mac sanity checks; rename archive
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import subprocess
|
import subprocess
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
import sys
|
||||||
|
|
||||||
DEST_DIRECTORY = '.'
|
DEST_DIRECTORY = '.'
|
||||||
|
|
||||||
@@ -9,7 +10,7 @@ if os.path.isdir("upx"):
|
|||||||
else:
|
else:
|
||||||
upx_string = ""
|
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")
|
shutil.rmtree("build")
|
||||||
|
|
||||||
subprocess.run(" ".join(["pyinstaller DungeonRandomizer.spec ",
|
subprocess.run(" ".join(["pyinstaller DungeonRandomizer.spec ",
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import subprocess
|
import subprocess
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
import sys
|
||||||
|
|
||||||
DEST_DIRECTORY = '.'
|
DEST_DIRECTORY = '.'
|
||||||
|
|
||||||
@@ -9,7 +10,7 @@ if os.path.isdir("upx"):
|
|||||||
else:
|
else:
|
||||||
upx_string = ""
|
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")
|
shutil.rmtree("build")
|
||||||
|
|
||||||
subprocess.run(" ".join(["pyinstaller Gui.spec ",
|
subprocess.run(" ".join(["pyinstaller Gui.spec ",
|
||||||
|
|||||||
@@ -86,6 +86,7 @@ if len(BUILD_FILENAMES) > 0:
|
|||||||
# .zip if windows
|
# .zip if windows
|
||||||
# .tar.gz otherwise
|
# .tar.gz otherwise
|
||||||
ZIP_FILENAME = os.path.join("..","deploy",os.path.splitext(BUILD_FILENAME)[0])
|
ZIP_FILENAME = os.path.join("..","deploy",os.path.splitext(BUILD_FILENAME)[0])
|
||||||
|
ZIP_FILENAME = "ALttPDoorRandomizer"
|
||||||
if env["OS_NAME"] == "windows":
|
if env["OS_NAME"] == "windows":
|
||||||
make_archive(ZIP_FILENAME,"zip")
|
make_archive(ZIP_FILENAME,"zip")
|
||||||
ZIP_FILENAME += ".zip"
|
ZIP_FILENAME += ".zip"
|
||||||
|
|||||||
Reference in New Issue
Block a user