bi/build_all_linux.sh

7 lines
549 B
Bash
Raw Normal View History

2025-05-22 16:27:39 +08:00
cd vue && npm run build:prod \
2025-08-13 10:38:36 +08:00
&& 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
2025-05-22 16:27:39 +08:00
echo "build success"