I use this program to check autoupdate of python program, which was compiled in *.exe and using library.zip as source of code. If program need update - you need just put in library.zip new *.pyc files, and program was update. To do this automaticaly, I wrote this program.
Steps:
-
Programm connect to server and check the verion of server-program in 'version.py', like: EsppTaskTracker = 1.3
-
Program check the version of client program in file 'version.txt', like: EsppTaskTracke=1.0
-
If version on server larger than client version - need update program.
-
Load all *.pyc files from server and put it on ./files/
-
Create backup of librrary.zip to library_backup.zip
-
Put all files from ./files/ to library.zip
-
Restart client program
-
PROFIT!
P.S. the idea of auto-updating already in use in my repo: https://github.com/Ver1Sus/Py2exePatch
Dependencies:
- reqests - to connect to server
- zipfile - to open library.zip