gosora/pre-run-linux
Azareal a668cd296b save bytes in the client templates
rename template file and functions to reduce bandwidth usage
replace x-loggedin with theoretically faster x-mem
remove redundant check in ua loop
move extraData initialisation down to where it's needed
2020-03-23 09:14:08 +10:00

32 lines
737 B
Plaintext

echo "Deleting artifacts from previous builds"
rm -f template_*.go
rm -f tmpl_*.go
rm -f gen_*.go
rm -f tmpl_client/template_*
rm -f tmpl_client/tmpl_*
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 -ldflags="-s -w" -o RouterGen "./router_gen"
echo "Running the router generator"
./RouterGen
echo "Building the query generator"
go build -ldflags="-s -w" -o QueryGen "./cmd/query_gen"
echo "Running the query generator"
./QueryGen
echo "Building Gosora"
go build -ldflags="-s -w" -o Gosora
echo "Building the templates"
./Gosora -build-templates
echo "Building Gosora... Again"
go build -ldflags="-s -w" -o Gosora