2018-07-24 08:45:01 +00:00
|
|
|
echo "Deleting artifacts from previous builds"
|
|
|
|
rm -f template_*.go
|
2020-03-22 23:14:08 +00:00
|
|
|
rm -f tmpl_*.go
|
2018-07-24 08:45:01 +00:00
|
|
|
rm -f gen_*.go
|
2020-03-22 23:14:08 +00:00
|
|
|
rm -f tmpl_client/template_*
|
|
|
|
rm -f tmpl_client/tmpl_*
|
2018-07-24 08:45:01 +00:00
|
|
|
rm -f ./Gosora
|
|
|
|
|
|
|
|
echo "Generating the dynamic code"
|
|
|
|
go generate
|
|
|
|
|
2019-03-31 00:39:54 +00:00
|
|
|
echo "Generating the JSON handlers"
|
|
|
|
easyjson -pkg common
|
|
|
|
|
2018-07-24 08:45:01 +00:00
|
|
|
echo "Building the router generator"
|
2019-07-10 15:33:07 +00:00
|
|
|
go build -ldflags="-s -w" -o RouterGen "./router_gen"
|
2018-07-24 08:45:01 +00:00
|
|
|
echo "Running the router generator"
|
|
|
|
./RouterGen
|
|
|
|
|
|
|
|
echo "Building the query generator"
|
2019-07-10 15:33:07 +00:00
|
|
|
go build -ldflags="-s -w" -o QueryGen "./cmd/query_gen"
|
2018-07-24 08:45:01 +00:00
|
|
|
echo "Running the query generator"
|
|
|
|
./QueryGen
|
|
|
|
|
|
|
|
echo "Building Gosora"
|
2019-07-10 15:33:07 +00:00
|
|
|
go build -ldflags="-s -w" -o Gosora
|
2018-07-24 08:45:01 +00:00
|
|
|
|
|
|
|
echo "Building the templates"
|
|
|
|
./Gosora -build-templates
|
|
|
|
|
|
|
|
echo "Building Gosora... Again"
|
2019-07-10 15:33:07 +00:00
|
|
|
go build -ldflags="-s -w" -o Gosora
|