Skip to content

Commit

Permalink
Merge pull request #2 from Nigh/remote-dead-mirror
Browse files Browse the repository at this point in the history
Remove dead mirror
  • Loading branch information
Nigh authored Sep 7, 2023
2 parents 5a152af + c508dcb commit d4cfe2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion meta.ahk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

FileEncoding("UTF-8")
appName:="auto upgrader"
version:="0.3.2"
version:="0.3.3"
versionFilename:="version.txt"
ahkFilename:="app.ahk"
binaryFilename:="app.exe"
Expand All @@ -10,4 +10,5 @@ downloadUrl:="/Nigh/ahk-autoupdate-template/releases/latest/download/"
update_log:="
(
Replaced compiler binary source
Removed dead GitHub mirror
)"
9 changes: 4 additions & 5 deletions update.ahk
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@

#include meta.ahk

if FileExist("updater.exe")
{
if FileExist("updater.exe") {
FileDelete("updater.exe")
}

if !FileExist("setting.ini") {
IniWrite(version, "setting.ini", "update", "ver")
}
lastUpdate:=IniRead("setting.ini", "update", "last", 0)
autoUpdate:=IniRead("setting.ini", "update", "autoupdate", 1)
updateMirror:=IniRead("setting.ini", "update", "mirror", 1)
IniWrite(updateMirror, "setting.ini", "update", "mirror")
mirrorList:=[
"https://github.com",
"https://ghproxy.com/https://github.com",
"https://download.fastgit.org",
"https://github.com.cnpmjs.org",
]
updatemirrorTried:=Array()
today:=A_MM . A_DD
Expand Down

0 comments on commit d4cfe2f

Please sign in to comment.