feat(server): 装配 notices(路由替换空壳+reward/pay 注入)+ 发版联动插 version 公告
main.go 挂载 notices.Store/Handler:注入 rewardSvc/payWebhook 到账通知钩子, /v1/notices 路由由 accountAPI 空壳换成真实 List/MarkRead,删除 account.go 的 TODO 空壳方法。补齐 pangolin-nodectl 到编译/部署产物链 (compile-backend.sh + deploy-server.sh),release-client.sh 在 version.yaml 推送成功后追加一步用 nodectl 插入 version 类型站内公告 (失败不阻断发版)。
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
# compile-backend.sh — cross-compile the pangolin Go control-plane binaries
|
||||
# (server / agent / migrate) for the pangolin1 deploy target. CGO disabled:
|
||||
# modernc.org/sqlite is pure Go, no cgo toolchain needed on the runner.
|
||||
# Output: server/out/{pangolin-server,pangolin-agent,pangolin-migrate}.
|
||||
# (server / agent / migrate / nodectl) for the pangolin1 deploy target. CGO
|
||||
# disabled: modernc.org/sqlite is pure Go, no cgo toolchain needed on the
|
||||
# runner.
|
||||
# Output: server/out/{pangolin-server,pangolin-agent,pangolin-migrate,pangolin-nodectl}.
|
||||
#
|
||||
# Run inside a golang:1.25 container by .gitea/workflows/deploy-server.yml;
|
||||
# this script itself just runs `go build` and assumes it is invoked from the
|
||||
@@ -24,5 +25,8 @@ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o out/pangolin-agent ./cmd/agent
|
||||
echo "==> compile-backend: building pangolin-migrate"
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o out/pangolin-migrate ./cmd/migrate
|
||||
|
||||
echo "==> compile-backend: building pangolin-nodectl"
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o out/pangolin-nodectl ./cmd/nodectl
|
||||
|
||||
echo "==> compile-backend: done — out/ contents:"
|
||||
ls -lh out/
|
||||
|
||||
Reference in New Issue
Block a user