Fixed the installer.
This commit is contained in:
parent
4f7bb5320d
commit
0bbdb6482e
|
@ -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
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
echo "Installing the dependencies"
|
||||
go get -u github.com/mailru/easyjson/...
|
||||
easyjson -pkg common
|
||||
go get
|
||||
|
||||
echo "Building the installer"
|
||||
|
|
12
install.bat
12
install.bat
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
echo "Updating the dependencies"
|
||||
go get
|
||||
|
||||
go get -u github.com/mailru/easyjson/...
|
||||
|
||||
go get
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue