Update patch.bat
This commit is contained in:
parent
cc516ff616
commit
28f55db229
1 changed files with 2 additions and 2 deletions
|
|
@ -80,7 +80,7 @@ exit /b
|
||||||
:download_extract
|
:download_extract
|
||||||
REM Download zip file
|
REM Download zip file
|
||||||
echo "Downloading latest patch..."
|
echo "Downloading latest patch..."
|
||||||
!_my_shell! -Command "Invoke-WebRequest -Uri 'https://gitgud.io/%username%/%repo%/-/archive/%branch%/%repo%-%branch%.zip' -OutFile 'repo.zip'"
|
!_my_shell! -Command "Set-Location -LiteralPath '%CD%'; Invoke-WebRequest -Uri 'https://gitgud.io/%username%/%repo%/-/archive/%branch%/%repo%-%branch%.zip' -OutFile 'repo.zip'"
|
||||||
if !errorlevel! neq 0 (
|
if !errorlevel! neq 0 (
|
||||||
pause
|
pause
|
||||||
exit /b
|
exit /b
|
||||||
|
|
@ -88,7 +88,7 @@ if !errorlevel! neq 0 (
|
||||||
|
|
||||||
REM Extract contents, overwriting conflicts
|
REM Extract contents, overwriting conflicts
|
||||||
echo "Extracting..."
|
echo "Extracting..."
|
||||||
!_my_shell! -Command "Expand-Archive -Path '.\repo.zip' -DestinationPath '.' -Force"
|
!_my_shell! -Command "Set-Location -LiteralPath '%CD%'; Expand-Archive -Path '.\repo.zip' -DestinationPath '.' -Force"
|
||||||
echo "Applying patch..."
|
echo "Applying patch..."
|
||||||
xcopy /s /e /y "%repo%-%branch%\*" "."
|
xcopy /s /e /y "%repo%-%branch%\*" "."
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue