server: 平台抽象层+bilibili、服务端加密凭据库、角色中间件;web: 精简页面/路由、macOS 客户端(Swift)与多份方案文档;移除误入库的编译产物
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
.PHONY: run build test tidy infra-up infra-down health
|
||||
.PHONY: run build web-build web-test web-smoke test tidy infra-up infra-down health mac-core mac-client
|
||||
|
||||
run: ## 本地运行服务
|
||||
cd server && go run .
|
||||
@@ -6,8 +6,19 @@ run: ## 本地运行服务
|
||||
build: ## 编译二进制
|
||||
cd server && go build -o ../dist/everypublish-server .
|
||||
|
||||
web-build: ## 构建网页端
|
||||
cd apps/web && npm run build
|
||||
|
||||
web-test: ## 网页端类型检查
|
||||
cd apps/web && npx tsc --noEmit
|
||||
|
||||
web-smoke: ## 网页端 API/Browser WS smoke(需先启动 Web-only server)
|
||||
cd apps/web && npm test
|
||||
|
||||
test: ## 单测
|
||||
cd server && go test ./...
|
||||
cd server && go vet ./...
|
||||
cd apps/web && npx tsc --noEmit
|
||||
|
||||
tidy: ## 整理依赖
|
||||
cd server && go mod tidy
|
||||
@@ -20,3 +31,10 @@ infra-down: ## 停止 MySQL/Redis
|
||||
|
||||
health: ## 健康检查
|
||||
curl -s http://127.0.0.1:8090/health
|
||||
|
||||
mac-core: ## 构建 macOS arm64 agent-core
|
||||
@echo "macOS 客户端已暂停;该目标仅保留历史兼容,不属于 V1 验收"
|
||||
cd client/core && GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -trimpath -ldflags '-s -w' -o ../dist/agent-core .
|
||||
|
||||
mac-client: ## 构建 macOS arm64 SwiftUI 原生 DMG
|
||||
@echo "macOS 客户端已暂停;该目标不属于 V1 验收"
|
||||
|
||||
Reference in New Issue
Block a user