gosora/dev-update.bat
2019-07-10 18:33:07 +03:00

32 lines
463 B
Batchfile

@echo off
echo Updating the dependencies
go get
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
go get -u github.com/mailru/easyjson/...
echo Updating Gosora
git stash
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
git pull origin master
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
git stash apply
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Patching Gosora
go generate
go build -ldflags="-s -w" ./patcher
patcher.exe