Files
Wormhole/Makefile
T
renjue 4a25b16d74
CI / docker (push) Failing after 1m22s
feat: 适配 Gitea CI 并整理开源仓库结构
移除本地 Docker 推送脚本,Dockerfile 对接通用 Gitea Actions 工作流;补充 LICENSE、优化 gitignore,并从版本库移除前端构建产物。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-23 16:14:58 +08:00

31 lines
675 B
Makefile

# 运行参考(配置已迁移至 Web 管理台 → 系统设置,无需配置文件)
.PHONY: tidy build build-all dev-web web install dev run run-agent
export GOENV := $(CURDIR)/go.env
export GOPROXY ?= https://goproxy.cn,direct
export GOSUMDB ?= sum.golang.google.cn
tidy:
go mod tidy
web:
cd web && npm install --registry=https://registry.npmmirror.com && npm run build
build: web
go build -o bin/wormhole ./cmd/wormhole
build-all: build
dev-web:
cd web && npm run dev
run:
go run ./cmd/wormhole server
run-agent:
go run ./cmd/wormhole agent -server 127.0.0.1:8528 -key $(KEY)
install:
cd web && npm install --registry=https://registry.npmmirror.com