github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/run-linux (about) 1 echo "Deleting artifacts from previous builds" 2 rm -f template_*.go 3 rm -f tmpl_*.go 4 rm -f gen_*.go 5 rm -f tmpl_client/template_* 6 rm -f tmpl_client/tmpl_* 7 rm -f ./Gosora 8 rm -f ./common/gen_extend.go 9 10 echo "Generating the dynamic code" 11 go generate 12 13 echo "Building the router generator" 14 go build -ldflags="-s -w" -o RouterGen "./router_gen" 15 echo "Running the router generator" 16 ./RouterGen 17 18 echo "Building the hook stub generator" 19 go build -ldflags="-s -w" -o HookStubGen "./cmd/hook_stub_gen" 20 echo "Running the hook stub generator" 21 ./HookStubGen 22 23 echo "Building the hook generator" 24 go build -tags hookgen -ldflags="-s -w" -o HookGen "./cmd/hook_gen" 25 echo "Running the hook generator" 26 ./HookGen 27 28 echo "Generating the JSON handlers" 29 easyjson -pkg common 30 31 echo "Building the query generator" 32 go build -ldflags="-s -w" -o QGen "./cmd/query_gen" 33 echo "Running the query generator" 34 ./QGen 35 36 echo "Building Gosora" 37 go build -ldflags="-s -w" -o Gosora 38 39 echo "Building the templates" 40 ./Gosora -build-templates 41 42 echo "Building Gosora... Again" 43 go build -ldflags="-s -w" -o Gosora 44 45 echo "Running Gosora" 46 ./Gosora