# 运行参考(配置已迁移至 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