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 ```bash
git clone https://github.com/Azareal/Gosora git clone https://github.com/Azareal/Gosora
go get -u github.com/mailru/easyjson/...
easyjson -pkg common
go get go get
rm -f template_*.go rm -f template_*.go

View File

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

View File

@ -1,6 +1,18 @@
@echo off @echo off
echo Installing the dependencies 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 go get
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause

View File

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

View File

@ -1,4 +1,4 @@
echo "Updating the dependencies" 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 off
echo Updating the dependencies echo Updating the dependencies
go get -u github.com/mailru/easyjson/...
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
go get go get
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%
) )
go get -u github.com/mailru/easyjson/...
echo The dependencies were successfully updated echo The dependencies were successfully updated
pause pause