gosora/build-linux-nowebsockets

32 lines
572 B
Plaintext
Raw Normal View History

echo "Deleting artifacts from previous builds"
rm -f template_*.go
rm -f gen_*.go
rm -f tmpl_client/template_*.go
rm -f ./Gosora
echo "Building the router generator"
cd ./router_gen
go build -o RouterGen
mv ./RouterGen ..
cd ..
echo "Running the router generator"
./RouterGen
echo "Building the query generator"
cd ./query_gen
go build -o QueryGen
mv ./QueryGen ..
cd ..
echo "Running the query generator"
./QueryGen
echo "Building Gosora"
go generate
go build -o Gosora -tags no_ws
echo "Building the installer"
cd ./install
go build -o Install
mv ./Install ..
cd ..