updater: move AO base folder out of .app on mac

This commit is contained in:
Headshotnoby 2021-06-22 16:35:23 -04:00
parent 334c0906d0
commit 75c8d4b45a

View File

@ -83,6 +83,8 @@ if not debugmode:
code = updater.checkForUpdates(force_update)
if code == 0:
subprocess.Popen(["./AO2XPupdat"])
if platform.system() == "Darwin" and ".app" in sys.argv[0]: # bundle
os.system("mv "+path+"/base ./appbase") # move the base folder out of the app folder to avoid deletion
os._exit(0)
elif osname == "Darwin" and ".app" in sys.argv[0]: # bundle
os.chdir(path) # return to Resources folder