1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-09 18:39:04 +08:00
AzurLaneAutoScript/command/CheckUpdate.bat

23 lines
712 B
Batchfile
Raw Normal View History

@rem
2020-08-26 09:13:01 +08:00
:: Used for "Alas-Deploy-Tool-V4.bat" and Alas.bat
:: Please make sure that: only call this batch when %cd% is "toolkit\".
:: e.g.
:: call command\CheckUpdate.bat Alas
:: call command\CheckUpdate.bat AlasGitee
@echo off
call :UpdateChecker_%~1
goto :eof
rem ================= FUNCTIONS =================
:UpdateChecker_IsNotUsingGit
set /p localVersion=<command\CurrentVersion
del /Q command\RemoteVersion >NUL 2>NUL
wget %WgetOptions% %Remoterepo%/modules/CurrentVersion -O command\RemoteVersion
set /p latestVersion=<command\RemoteVersion
if "%localVersion%"=="%latestVersion%" ( set "isLatestVersion=1" ) else ( set "isLatestVersion=0" )
goto :eof
rem ================= End of File =================