github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/install.bat (about) 1 @echo off 2 3 echo Installing the dependencies 4 go get -u github.com/mailru/easyjson/... 5 if %errorlevel% neq 0 ( 6 pause 7 exit /b %errorlevel% 8 ) 9 10 easyjson -pkg common 11 if %errorlevel% neq 0 ( 12 pause 13 exit /b %errorlevel% 14 ) 15 16 go get 17 if %errorlevel% neq 0 ( 18 pause 19 exit /b %errorlevel% 20 ) 21 22 echo Building the installer 23 go generate 24 go build -ldflags="-s -w" "./cmd/install" 25 if %errorlevel% neq 0 ( 26 pause 27 exit /b %errorlevel% 28 ) 29 install.exe