Fixed the installer.

This commit is contained in:
Azareal 2019-03-31 10:39:54 +10:00
parent 4f7bb5320d
commit 0bbdb6482e
6 changed files with 29 additions and 7 deletions

View File

@ -116,6 +116,10 @@ You also need to substitute the `gosora.exe` bits for `./Gosora` on Linux. For m
```bash
git clone https://github.com/Azareal/Gosora
go get -u github.com/mailru/easyjson/...
easyjson -pkg common
go get
rm -f template_*.go

View File

@ -1,4 +1,6 @@
echo "Installing the dependencies"
go get -u github.com/mailru/easyjson/...
easyjson -pkg common
go get
echo "Building the installer"

View File

@ -1,6 +1,18 @@
@echo off
echo Installing the dependencies
go get -u github.com/mailru/easyjson/...
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
easyjson -pkg common
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
go get
if %errorlevel% neq 0 (
pause

View File

@ -7,6 +7,9 @@ rm -f ./Gosora
echo "Generating the dynamic code"
go generate
echo "Generating the JSON handlers"
easyjson -pkg common
echo "Building the router generator"
go build -o RouterGen "./router_gen"
echo "Running the router generator"
@ -17,9 +20,6 @@ go build -o QueryGen "./cmd/query_gen"
echo "Running the query generator"
./QueryGen
echo "Generating the JSON handlers"
easyjson -pkg common
echo "Building Gosora"
go build -o Gosora

View File

@ -1,4 +1,4 @@
echo "Updating the dependencies"
go get
go get -u github.com/mailru/easyjson/...
go get -u github.com/mailru/easyjson/...
go get

View File

@ -1,13 +1,17 @@
@echo off
echo Updating the dependencies
go get -u github.com/mailru/easyjson/...
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
go get
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
go get -u github.com/mailru/easyjson/...
echo The dependencies were successfully updated
pause