Skip to content

Commit

Permalink
Don't compress BinMod
Browse files Browse the repository at this point in the history
  • Loading branch information
TAC109 committed Feb 12, 2023
1 parent ac85c5f commit 640a307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Update.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Reqs:=[(wk:="AutoHotkey/Ahk2Exe") ",,,Ahk2Exe.exe"
,"UPX/UPX," (A_Is64bitOS?"64.zip":"32.zip") ",,Upx.exe", wk ",,2,BinMod.ahk"]
A2D := A_ScriptDir "\", Priv := ""
if !A_IsCompiled ; Compile Ahk2Exe to test updates
RunWait "%A_AhkPath%" "%A_ScriptFullPath%"
RunWait "%A_AhkPath%" "%A_ScriptFullPath%" /compress 0
/in "%A_ScriptFullPath%" /base "%A_AhkPath%\..\AutoHotkeyU32.exe"
UpdDirRem(), UpdDir := Util_TempFile(,"Update", "Update")
FileCreateDir %UpdDir%
Expand All @@ -29,6 +29,7 @@ for k, v in Reqs
else FileCopy % UpdDir "\" k "\" Reqa.4, %UpdDir%, 1
if (Reqa.4 ~= "i).ahk$") ; Script needs compiling?
RunWait "%A2D%Ahk2Exe.exe" /in "%UpdDir%%wk%" /base "%A2D%Ahk2Exe.exe"
/compress 0
}
VnO := AHKType(RegExReplace(A2D Reqa.4,"i)ahk$","exe"),0).Version
Text%k%V := VnO := RegExReplace(VnO,"\(.+$") ; Get old version
Expand Down Expand Up @@ -135,7 +136,6 @@ For k, v in A_Args ; Add quotes to parameters & escape any trailing \




FileAppend,
(
#NoTrayIcon`nDetectHiddenWindows on
Expand Down

0 comments on commit 640a307

Please sign in to comment.