11goto UpdateEnd ; If fall-into, skip to near end
22Update :
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" ]
65A2D := A_ScriptDir " \"
76if ! A_IsCompiled ; Compile Ahk2Exe to test updates
87 RunWait " %A_AhkPath%" " %A_ScriptFullPath%" / compress 0
@@ -19,8 +18,7 @@ Gui Upd:Font, norm
1918Gui Upd:Show , w350 h160, % " Checking ..."
2019for 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 )
6866
6967
7068
69+
70+
7171UpdChk :
7272if ! (%A_GuiControl %T)
7373 GuiControlGet %A_GuiControl %T, Upd:,%A_GuiControl %, Text
0 commit comments