- .goreleaser.yaml:5 平台二进制(linux/darwin/windows × amd64/arm64)+ tar.gz/zip 双格式归档 + 双架构 Docker 镜像(ACR registry.cn-hangzhou.aliyuncs.com/skymirror/fileshare) + 多架构 manifest(版本号 + latest)+ Gitea Release 发布 - main.go:APP_VERSION 从 const 改 var,支持 -ldflags -X 注入发布版本; 新增 BuildCommit/BuildDate 注入点 - dist/ 加入 .gitignore
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
# ===== 构建产物与本地缓存 =====
|
||
# Go 构缓存 / 模块缓存(体积大,且 .gomodcache 含第三方源码副本)
|
||
.gocache/
|
||
.gomodcache/
|
||
.gotools/
|
||
.npm-cache/
|
||
|
||
# 前端依赖与构建产物
|
||
web/node_modules/
|
||
web/dist/
|
||
# web-embed/ 为宿主预构建产物(cp -a web/dist web-embed/),仅保留占位;
|
||
# Dockerfile 缺失 index.html 时自动回退为容器内构建前端
|
||
web-embed/*
|
||
!web-embed/.gitkeep
|
||
|
||
# go:embed 目标:直接提交构建产物,保证全新克隆 `go build`/`go run` 开箱可用
|
||
# (前端源码变更后重新构建并同步:cd web && npm run build && rm -rf ../server/web/dist && cp -a dist ../server/web/dist)
|
||
|
||
# 参考实现(第三方上游代码,非本项目源码,不入库)
|
||
reference/
|
||
|
||
# 本地运行数据(SQLite 数据库、本地存储文件、日志)
|
||
server/data/
|
||
*.db
|
||
*.db-shm
|
||
*.db-wal
|
||
*.log
|
||
server.pid
|
||
|
||
# 环境变量(保留 .env.example 模板;.env 属各部署环境自有配置)
|
||
deploy/.env
|
||
|
||
# 系统杂物
|
||
.DS_Store
|
||
|
||
# 会话/协作目录(工具私有,非项目源码)
|
||
.agent-teams/
|
||
dist/
|