I would like to request a memorandum and correction.
I noticed that even if the application is not packaged, if you do not include a mechanism to update it, you will have to copy it on each machine every time you modify it. It's easy to download via http and unzip the zip file, so why not combine them and update the .py file in the application directory? So, the relevant part is like this.
def updateDownloadQuit(self):
url ="http://〜〜"
title = './update.zip'
urllib.request.urlretrieve(url,"{0}".format(title))
QMessageBox.information(None, "Info", "Update the application and exit")
with zipfile.ZipFile('update.zip') as existing_zip:
existing_zip.extractall('.')
MainWindow.close()
Even if it is not Qt, I think it can be used to distribute a small set of scripts.
Recommended Posts