a668cd296b
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
37 lines
750 B
Plaintext
37 lines
750 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 "Building the router generator"
|
|
cd ./router_gen
|
|
go build -ldflags="-s -w" -o RouterGen
|
|
mv ./RouterGen ..
|
|
cd ..
|
|
echo "Running the router generator"
|
|
./RouterGen
|
|
|
|
echo "Building the query generator"
|
|
cd ./cmd/query_gen
|
|
go build -ldflags="-s -w" -o QueryGen
|
|
mv ./QueryGen ../..
|
|
cd ../..
|
|
echo "Running the query generator"
|
|
./QueryGen
|
|
|
|
echo "Generating the JSON handlers"
|
|
easyjson -pkg common
|
|
|
|
echo "Building Gosora"
|
|
go generate
|
|
go build -ldflags="-s -w" -o Gosora -tags no_ws
|
|
|
|
echo "Building the installer"
|
|
cd ./install
|
|
go build -ldflags="-s -w" -o Installer
|
|
mv ./Installer ..
|
|
cd ..
|