Skip to content

Commit

Permalink
版本0.9.3.1
Browse files Browse the repository at this point in the history
修复了更新功能
  • Loading branch information
millionart committed Dec 23, 2018
1 parent fffbbed commit 377599d
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 6 deletions.
Binary file modified bin/old/Setup.exe
Binary file not shown.
Binary file modified bin/old/Update.ini
Binary file not shown.
Binary file modified bin/test/Update.ini
Binary file not shown.
Binary file modified bin/x32/Setup.exe
Binary file not shown.
Binary file modified bin/x32/Update.ini
Binary file not shown.
Binary file modified bin/x64/Setup.exe
Binary file not shown.
Binary file modified bin/x64/Update.ini
Binary file not shown.
Binary file modified source/Data/Update/APssistant.7z
Binary file not shown.
11 changes: 5 additions & 6 deletions source/Update.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ IfExist %A_scriptdir%\APssistant.com
FileDelete, %A_scriptdir%\APssistant.exe
FileMove, %A_scriptdir%\APssistant.com, %A_scriptdir%\APssistant.exe
}

G_ReadLanguage()
Downloadtimes=0
Downloadtimes:=0

if A_Is64bitOS=1
OSbit=64
Expand Down Expand Up @@ -45,7 +44,7 @@ IniRead, UpdatefileMD5, %VerFileName%, %WinBit%, MD5, 0
If UpdatefileMD5=% File_Hash(UpdateFileName, "MD5")
{
IniRead, LatestVer, %VerFileName%, %WinBit%, Version,0
NewVerAvailable:=StrReplace(lang_NewVerAvailable, "`%LatestVer`%", "%LatestVer%")
NewVerAvailable:=StrReplace(lang_NewVerAvailable, "`%LatestVer`%", LatestVer)

OnMessage(0x44, "OnMsgBox")
MsgBox 0x184, %lang_NewVer%, %NewVerAvailable%
Expand Down Expand Up @@ -88,16 +87,15 @@ f_CheckVersion()
{
Global
If (A_IsCompiled)
{
{
FileDelete, %VerFileName%
UrlDownloadToFile, https://github.com/millionart/Apssistant/raw/master/bin/x%OSbit%/Update.ini, %VerFileName%
IniRead, LatestVer, %VerFileName%, %WinBit%, Version,CannotConnect
FileDelete, %VerFileName%
}
else
{
WinBit=Win32
;UrlDownloadToFile, https://github.com/millionart/Apssistant/raw/master/bin/test/Update.ini, %VerFileName%
UrlDownloadToFile, https://github.com/millionart/Apssistant/raw/master/bin/test/Update.ini, %VerFileName%
IniRead, LatestVer, %VerFileName%, %WinBit%, Version,CannotConnect
}

Expand All @@ -122,6 +120,7 @@ f_CheckVersion()
else
MsgBox, 64, Apssistant, %lang_NewVerNotAvailable%, 30
}
FileDelete, %VerFileName%
}

;Thanks to 彪悍的小玄
Expand Down

0 comments on commit 377599d

Please sign in to comment.