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
|
|
|
|
rm -f gen_*.go
|
|
|
|
rm -f tmpl_client/template_*.go
|
|
|
|
rm -f ./Gosora
|
|
|
|
|
|
|
|
echo "Building the router generator"
|
|
|
|
go build ./router_gen
|
|
|
|
echo "Running the router generator"
|
|
|
|
router_gen.exe
|
|
|
|
|
|
|
|
echo "Building the query generator"
|
|
|
|
go build ./query_gen
|
|
|
|
echo "Running the query generator"
|
|
|
|
query_gen.exe
|
2018-06-06 04:16:27 +00:00
|
|
|
|
2017-05-11 13:04:43 +00:00
|
|
|
echo "Building Gosora"
|
2017-06-05 11:57:27 +00:00
|
|
|
go generate
|
2017-05-11 13:04:43 +00:00
|
|
|
go build -o Gosora -tags no_ws
|
2018-06-06 04:16:27 +00:00
|
|
|
|
2017-05-11 13:04:43 +00:00
|
|
|
echo "Building the installer"
|
2017-06-05 11:57:27 +00:00
|
|
|
cd ./install
|
|
|
|
go build -o Install
|
|
|
|
mv ./Install ..
|
|
|
|
cd ..
|