From 75c8d4b45a51d4e518df757d1e7d456b6afcb0c9 Mon Sep 17 00:00:00 2001 From: Headshotnoby Date: Tue, 22 Jun 2021 16:35:23 -0400 Subject: [PATCH] updater: move AO base folder out of .app on mac --- AO2XP.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AO2XP.py b/AO2XP.py index 0f11f3a..7a4541a 100644 --- a/AO2XP.py +++ b/AO2XP.py @@ -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