Skip to content

Commit 97cecb3

Browse files
committed
Get Mpress more reliably in the Updater
1 parent 2cadde3 commit 97cecb3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Update.ahk

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
goto UpdateEnd ; If fall-into, skip to near end
22
Update:
3-
Reqs:=[(wk:="AutoHotkey/Ahk2Exe") ",,,Ahk2Exe.exe"
4-
,"https://www.autohotkey.com/mpress/mpress.219.zip,,,Mpress.exe"
5-
,"UPX/UPX," (A_Is64bitOS?"64.zip":"32.zip") ",,Upx.exe", wk ",,2,BinMod.ahk"]
3+
Reqs:=[(wk:="AutoHotkey/Ahk2Exe") ",,,Ahk2Exe.exe", "TAC109/Mpress,,,Mpress.exe"
4+
, "UPX/UPX," (A_Is64bitOS?"64.zip":"32.zip") ",,Upx.exe", wk ",,2,BinMod.ahk"]
65
A2D := A_ScriptDir "\"
76
if !A_IsCompiled ; Compile Ahk2Exe to test updates
87
RunWait "%A_AhkPath%" "%A_ScriptFullPath%" /compress 0
@@ -19,8 +18,7 @@ Gui Upd:Font, norm
1918
Gui Upd:Show, w350 h160, % " Checking ..."
2019
for k, v in Reqs
2120
{ Reqa := StrSplit(v,","), Text%k%T := ""
22-
Url := Reqa.4="mpress.exe" ? Reqa.1 : GitHubDwnldUrl(Reqa.1,Reqa.2,Reqa.3)
23-
if url
21+
if (url := GitHubDwnldUrl(Reqa.1, Reqa.2, Reqa.3))
2422
{ URLDownloadToFile %Url%, %UpdDir%\File.zip
2523
FileCopyDir %UpdDir%\File.zip, %UpdDir%\%k%
2624
IfNotExist % UpdDir "\" k (wk := "\" Reqa.4)
@@ -68,6 +66,8 @@ return
6866

6967

7068

69+
70+
7171
UpdChk:
7272
if !(%A_GuiControl%T)
7373
GuiControlGet %A_GuiControl%T, Upd:,%A_GuiControl%, Text

0 commit comments

Comments
 (0)