2018-06-06 04:16:27 +00:00
|
|
|
echo "Deleting artifacts from previous builds"
|
2018-06-06 04:33:47 +00:00
|
|
|
rm -f template_*.go
|
|
|
|
rm -f gen_*.go
|
|
|
|
rm -f tmpl_client/template_*.go
|
|
|
|
rm -f ./Gosora
|
|
|
|
|
|
|
|
echo "Building the router generator"
|
2018-06-06 04:42:57 +00:00
|
|
|
cd ./router_gen
|
2019-07-10 15:33:07 +00:00
|
|
|
go build -ldflags="-s -w" -o RouterGen
|
2018-06-06 04:42:57 +00:00
|
|
|
mv ./RouterGen ..
|
|
|
|
cd ..
|
2018-06-06 04:33:47 +00:00
|
|
|
echo "Running the router generator"
|
2018-06-06 04:42:57 +00:00
|
|
|
./RouterGen
|
2018-06-06 04:33:47 +00:00
|
|
|
|
|
|
|
echo "Building the query generator"
|
2018-10-27 03:21:02 +00:00
|
|
|
cd ./cmd/query_gen
|
2019-07-10 15:33:07 +00:00
|
|
|
go build -ldflags="-s -w" -o QueryGen
|
2018-10-27 03:21:02 +00:00
|
|
|
mv ./QueryGen ../..
|
|
|
|
cd ../..
|
2018-06-06 04:33:47 +00:00
|
|
|
echo "Running the query generator"
|
2018-06-06 04:42:57 +00:00
|
|
|
./QueryGen
|
2018-06-06 04:16:27 +00:00
|
|
|
|
2019-02-10 05:52:26 +00:00
|
|
|
echo "Generating the JSON handlers"
|
|
|
|
easyjson -pkg common
|
|
|
|
|
2017-05-11 13:04:43 +00:00
|
|
|
echo "Building Gosora"
|
2017-06-05 11:57:27 +00:00
|
|
|
go generate
|
2019-07-10 15:33:07 +00:00
|
|
|
go build -ldflags="-s -w" -o Gosora -tags no_ws
|
2018-06-06 04:16:27 +00:00
|
|
|
|
2017-05-11 13:04:43 +00:00
|
|
|
echo "Building the installer"
|
2017-06-05 11:57:27 +00:00
|
|
|
cd ./install
|
2019-07-10 15:33:07 +00:00
|
|
|
go build -ldflags="-s -w" -o Installer
|
2018-10-27 03:21:02 +00:00
|
|
|
mv ./Installer ..
|
2017-06-05 11:57:27 +00:00
|
|
|
cd ..
|