Moar sanity checks

This commit is contained in:
Mike A. Trethewey
2020-02-26 03:35:32 -08:00
parent 0d45f20eae
commit 5897cb0b80
2 changed files with 9 additions and 5 deletions

View File

@@ -3,6 +3,9 @@
block_cipher = None
console = True
if sys.platform.find("mac") or sys.platform.find("osx"):
console = False
def recurse_for_py_files(names_so_far):
returnvalue = []
for name in os.listdir(os.path.join(*names_so_far)):

View File

@@ -75,11 +75,12 @@ for BUILD_FILENAME in BUILD_FILENAMES:
for BUILD_FILENAME in BUILD_FILENAMES:
if not "artifact" in BUILD_FILENAME:
# move the binary back
move(
os.path.join("..","artifact",BUILD_FILENAME),
os.path.join(".",BUILD_FILENAME)
)
if os.path.isfile(os.path.join("..","artifact",BUILD_FILENAME)):
# move the binary back
move(
os.path.join("..","artifact",BUILD_FILENAME),
os.path.join(".",BUILD_FILENAME)
)
# .zip if windows
# .tar.gz otherwise