some changes

This commit is contained in:
a 2022-02-21 03:42:55 +00:00
parent 5b93b66792
commit e1a3ec1f1d
2 changed files with 18 additions and 16 deletions

View File

@ -2,4 +2,20 @@
tidy:
go mod tidy
go mod tidy
build:
mkdir -p bin
go build -ldflags="-s -w" -o ./bin/gosora.exe .
clean:
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 ./bin/*
rm -f ./common/gen_extend.go

View File

@ -1,11 +1,3 @@
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
rm -f ./common/gen_extend.go
echo "Building the router generator"
go build -ldflags="-s -w" -o RouterGen "./router_gen"
@ -22,9 +14,6 @@ go build -tags hookgen -ldflags="-s -w" -o HookGen "./cmd/hook_gen"
echo "Running the hook generator"
./HookGen
echo "Generating the JSON handlers"
easyjson -pkg common
echo "Building the query generator"
go build -ldflags="-s -w" -o QueryGen "./cmd/query_gen"
echo "Running the query generator"
@ -32,7 +21,4 @@ echo "Running the query generator"
echo "Building Gosora"
go generate
go build -ldflags="-s -w" -o Gosora
echo "Building the installer"
go build -ldflags="-s -w" -o Installer "./install"
go build -ldflags="-s -w" -o ./bin/gosora.exe