mirror of
https://github.com/arkenfox/user.js.git
synced 2025-05-08 01:43:51 +02:00
Merge fc2075e37c
into 1c997693ff
This commit is contained in:
commit
8cb4dd508b
1 changed files with 25 additions and 0 deletions
25
updater.bat
25
updater.bat
|
@ -36,6 +36,31 @@ SHIFT
|
|||
GOTO parse
|
||||
:endparse
|
||||
ECHO.
|
||||
IF DEFINED _updateb (
|
||||
ECHO Checking updater version...
|
||||
ECHO.
|
||||
DEL /F "!_myname!-updated.bat" 2>nul
|
||||
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://github.com/ghacksuserjs/ghacks-user.js/raw/master/updater.bat', '!_myname!-updated.bat')" >nul
|
||||
IF EXIST "!_myname!-updated.bat" (
|
||||
CLS
|
||||
START CMD /C "!_myname!-updated.bat" !_myparams!
|
||||
DEL /F "!_myname!.bat" 2>nul
|
||||
EXIT /B
|
||||
) ELSE (
|
||||
ECHO Failed. Make sure PowerShell is allowed internet access.
|
||||
ECHO.
|
||||
PAUSE
|
||||
EXIT /B
|
||||
)
|
||||
) ELSE (
|
||||
IF NOT "!_myname!"=="!_myname:-updated=X!" (
|
||||
CALL :begin
|
||||
REN "!_myname!.bat" "!_myname:-updated=!.bat"
|
||||
EXIT /B
|
||||
)
|
||||
)
|
||||
GOTO begin
|
||||
:begin
|
||||
SET /A "_line=0"
|
||||
IF NOT EXIST user.js (
|
||||
ECHO user.js not detected in the current directory.
|
||||
|
|
Loading…
Add table
Reference in a new issue