Fix deleting exe not working for mac builds
@@ -36,11 +36,9 @@ os.mkdir(release_archive_path)
shutil.copyfile("README.md", os.path.join(release_archive_path, "README.txt"))
if platform.system() == "Darwin":
- shutil.copytree(exe_path, os.path.join(release_archive_path, base_name + exe_ext))
+ shutil.move(exe_path, os.path.join(release_archive_path, base_name + exe_ext))
shutil.copyfile(os.path.join(".", "models", "About Custom Models.txt"), os.path.join(release_archive_path, "About Custom Models.txt"))
else:
os.mkdir(os.path.join(release_archive_path, "models"))
- shutil.copyfile(exe_path, os.path.join(release_archive_path, base_name + exe_ext))
+ shutil.move(exe_path, os.path.join(release_archive_path, base_name + exe_ext))
shutil.copyfile(os.path.join(".", "models", "About Custom Models.txt"), os.path.join(release_archive_path, "models", "About Custom Models.txt"))
-
-os.remove(exe_path)
