7 lines
549 B
Bash
Executable File
7 lines
549 B
Bash
Executable File
cd vue && npm run build:prod \
|
|
&& cd .. && export GOOS=linux \
|
|
&& go build -tags netgo -ldflags "-s -w" -trimpath -buildvcs=false -o bin/linux/manager cmd/manager/main.go \
|
|
&& go build -tags netgo -ldflags "-s -w" -trimpath -buildvcs=false -o bin/linux/report_server cmd/report_server/main.go \
|
|
&& go build -tags netgo -ldflags "-s -w" -trimpath -buildvcs=false -o bin/linux/sinker cmd/sinker/main.go \
|
|
&& go build -tags netgo -ldflags "-s -w" -trimpath -buildvcs=false -o bin/linux/init_app cmd/init_app/main.go
|
|
echo "build success" |