some changes
This commit is contained in:
parent
5b93b66792
commit
e1a3ec1f1d
18
Makefile
18
Makefile
|
@ -2,4 +2,20 @@
|
||||||
|
|
||||||
|
|
||||||
tidy:
|
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
|
||||||
|
|
16
build-linux
16
build-linux
|
@ -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"
|
echo "Building the router generator"
|
||||||
go build -ldflags="-s -w" -o RouterGen "./router_gen"
|
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"
|
echo "Running the hook generator"
|
||||||
./HookGen
|
./HookGen
|
||||||
|
|
||||||
echo "Generating the JSON handlers"
|
|
||||||
easyjson -pkg common
|
|
||||||
|
|
||||||
echo "Building the query generator"
|
echo "Building the query generator"
|
||||||
go build -ldflags="-s -w" -o QueryGen "./cmd/query_gen"
|
go build -ldflags="-s -w" -o QueryGen "./cmd/query_gen"
|
||||||
echo "Running the query generator"
|
echo "Running the query generator"
|
||||||
|
@ -32,7 +21,4 @@ echo "Running the query generator"
|
||||||
|
|
||||||
echo "Building Gosora"
|
echo "Building Gosora"
|
||||||
go generate
|
go generate
|
||||||
go build -ldflags="-s -w" -o Gosora
|
go build -ldflags="-s -w" -o ./bin/gosora.exe
|
||||||
|
|
||||||
echo "Building the installer"
|
|
||||||
go build -ldflags="-s -w" -o Installer "./install"
|
|
||||||
|
|
Loading…
Reference in New Issue