mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 06:18:21 +08:00
Add: New Run tool
- The previous tool was kept under the name of alas2.bat and will be removed after feedback on the current tool
This commit is contained in:
22
command/CheckUpdate.bat
Normal file
22
command/CheckUpdate.bat
Normal file
@@ -0,0 +1,22 @@
|
||||
@rem
|
||||
:: Used for "ADT-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 =================
|
||||
Reference in New Issue
Block a user