Skip to content
This repository has been archived by the owner on Feb 14, 2018. It is now read-only.

Commit

Permalink
Added option to disable auto update
Browse files Browse the repository at this point in the history
  • Loading branch information
Marocco2 committed Mar 12, 2016
1 parent aba1574 commit 68b17a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions apps/python/PitConfig/CheckNewVersion.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
FileRead, CurrVer, version.txt
UrlDownloadToFile, https://raw.githubusercontent.com/Marocco2/PitConfig-Marocco2-version/master/apps/python/PitConfig/version.txt, version.txt
FileRead, NewVer, version.txt
if (CurrVer != NewVer)
UrlDownloadToFile, https://raw.githubusercontent.com/Marocco2/PitConfig-Marocco2-version/%NewVer%/apps/python/PitConfig/Hotkey.exe, Hotkey.exe
UrlDownloadToFile, https://raw.githubusercontent.com/Marocco2/PitConfig-Marocco2-version/%NewVer%/apps/python/PitConfig/PitConfig.py, PitConfig.py
UrlDownloadToFile, https://raw.githubusercontent.com/Marocco2/PitConfig-Marocco2-version/%NewVer%/apps/python/PitConfig/CheckNewVersion.exe, CheckNewVersion.exe
IniRead, EnableOTA, PitConfig.ini, AUTOUPDATE, Enable, 1
if (CurrVer != NewVer) and (EnableOTA == 1)
UrlDownloadToFile, https://raw.githubusercontent.com/Marocco2/PitConfig-Marocco2-plugin/%NewVer%/apps/python/PitConfig/Hotkey.exe, Hotkey.exe
UrlDownloadToFile, https://raw.githubusercontent.com/Marocco2/PitConfig-Marocco2-plugin/%NewVer%/apps/python/PitConfig/PitConfig.py, PitConfig.py
UrlDownloadToFile, https://raw.githubusercontent.com/Marocco2/PitConfig-Marocco2-plugin/%NewVer%/apps/python/PitConfig/CheckNewVersion.exe, CheckNewVersion.exe
Exit
Binary file modified apps/python/PitConfig/CheckNewVersion.exe
Binary file not shown.

0 comments on commit 68b17a1

Please sign in to comment.