emit text label 'making base backup'

This commit is contained in:
Headshotnoby 2021-06-22 23:05:02 -04:00
parent 0b4daa5e93
commit 2e6b406ff5

View File

@ -187,6 +187,7 @@ class updateThread(QtCore.QThread):
print "downloaded update" print "downloaded update"
downloadfile.close() downloadfile.close()
if platform.system() == "Darwin" and ".app" in sys.argv[0]: # bundle if platform.system() == "Darwin" and ".app" in sys.argv[0]: # bundle
self.labelText.emit("Making a backup of AO base folder...")
path = "/".join(sys.argv[0].split("/")[:-1]) # to Resources folder path = "/".join(sys.argv[0].split("/")[:-1]) # to Resources folder
os.system("cp -r "+path+"/base ./appbase") # move the base folder out of the app folder to avoid deletion os.system("cp -r "+path+"/base ./appbase") # move the base folder out of the app folder to avoid deletion
returncode = 0 returncode = 0