isaacimholt / RazerCortexFarmer

Farm Razer Cortex zSilver coins
MIT License
6 stars 0 forks source link

add update system #14

Open isaacimholt opened 7 years ago

isaacimholt commented 7 years ago

Problem: the updated release will be in the form of a .zip with all files. This will overwrite the games.csv the user has, potentially erasing any modifications the user has made, so some care must be made to come up with a system that avoids this problem, such as having a "canonical" games.csv hidden somewhere in some folder, and a games.csv in the main program directory that is initially a copy of the hidden version, that will remain when the program updates, and on program startup will have any new entries added from update to csv.

isaacimholt commented 7 years ago

nevermind just use github api to download latest release zip, then use included 7z.exe to unzip into script directory.

https://developer.github.com/v3/ https://developer.github.com/v3/repos/releases/ https://api.github.com/repos/isaacimholt/RazerCortexFarmer/releases https://autohotkey.com/board/topic/62431-quick-n-dirty-autoupdate/ how to handle updating .exe: https://autohotkey.com/board/topic/127857-self-update-script/ https://autohotkey.com/board/topic/26863-updating-compiled-script/