some changes
This commit is contained in:
parent
5b93b66792
commit
e1a3ec1f1d
16
Makefile
16
Makefile
|
@ -3,3 +3,19 @@
|
|||
|
||||
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"
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue