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
|
2020-03-22 23:14:08 +00:00
|
|
|
rm -f tmpl_*.go
|
2018-06-06 04:33:47 +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-06-06 04:33:47 +00:00
|
|
|
rm -f ./Gosora
|
2020-05-24 08:06:24 +00:00
|
|
|
rm -f ./common/gen_extend.go
|
2018-06-06 04:16:27 +00:00
|
|
|
|
2017-05-11 13:04:43 +00:00
|
|
|
echo "Generating the dynamic code"
|
|
|
|
go generate
|
2018-03-31 05:25:27 +00:00
|
|
|
|
2018-06-06 04:33:47 +00:00
|
|
|
echo "Building the router generator"
|
2020-05-24 08:06:24 +00:00
|
|
|
go build -ldflags="-s -w" -o RouterGen "./router_gen"
|
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
|
|
|
|
2020-05-24 08:06:24 +00:00
|
|
|
echo "Building the hook stub generator"
|
|
|
|
go build -ldflags="-s -w" -o HookStubGen "./cmd/hook_stub_gen"
|
|
|
|
echo "Running the hook stub generator"
|
|
|
|
./HookStubGen
|
|
|
|
|
|
|
|
echo "Building the hook generator"
|
|
|
|
go build -tags hookgen -ldflags="-s -w" -o HookGen "./cmd/hook_gen"
|
|
|
|
echo "Running the hook generator"
|
|
|
|
./HookGen
|
2018-06-06 04:33:47 +00:00
|
|
|
|
2019-02-10 05:52:26 +00:00
|
|
|
echo "Generating the JSON handlers"
|
|
|
|
easyjson -pkg common
|
|
|
|
|
2020-05-24 08:06:24 +00:00
|
|
|
echo "Building the query generator"
|
|
|
|
go build -ldflags="-s -w" -o QueryGen "./cmd/query_gen"
|
|
|
|
echo "Running the query generator"
|
|
|
|
./QueryGen
|
|
|
|
|
2017-05-11 13:04:43 +00:00
|
|
|
echo "Building Gosora"
|
2019-07-10 15:33:07 +00:00
|
|
|
go build -ldflags="-s -w" -o Gosora -tags no_ws
|
2018-03-31 05:25:27 +00:00
|
|
|
|
2018-03-21 05:56:33 +00:00
|
|
|
echo "Building the templates"
|
|
|
|
./Gosora -build-templates
|
2018-03-31 05:25:27 +00:00
|
|
|
|
|
|
|
echo "Building Gosora... Again"
|
2019-07-10 15:33:07 +00:00
|
|
|
go build -ldflags="-s -w" -o Gosora -tags no_ws
|
2018-03-31 05:25:27 +00:00
|
|
|
|
2017-05-11 13:04:43 +00:00
|
|
|
echo "Running Gosora"
|
|
|
|
./Gosora
|