docs: update project status v4.8, AGENTS.md build notes, deployment docs
- PROJECT-STATUS.md: v4.8 changelog (SEO, share hooks, version injection) - AGENTS.md: update version to v1.0.17, add build notes for SEO/version/share - DEPLOYMENT.md: update deploy instructions for robots.txt/sitemap.xml/static, version bump
This commit is contained in:
@@ -141,6 +141,12 @@ npm test # 前端单元测试(vitest,7 个)
|
||||
cd backend && npm run build
|
||||
```
|
||||
|
||||
### 构建产物说明
|
||||
- **H5 构建** (`npm run build:h5`):自动复制 `avatar-*.png` 到 `static/`,复制 `robots.txt` 和 `sitemap.xml` 到输出根目录
|
||||
- **版本号注入**:`vite.config.js` 中 `define.__APP_VERSION__` 自动从 `git describe --tags` 获取版本号,`about.vue` 页面实时显示
|
||||
- **小程序上传版本** (`scripts/upload-mp.js`):自动从 git tag 获取基础版本,末位自增 1(如 tag v1.0.16 → 上传版本 1.0.17)
|
||||
- **微信分享**:所有主页面均已注册 `onShareAppMessage` + `onShareTimeline`,右上角菜单转发/分享到朋友圈可用
|
||||
|
||||
### 部署后端
|
||||
```bash
|
||||
cd backend && npm run build
|
||||
@@ -156,7 +162,9 @@ cd zhiyin-app && npm run build:h5
|
||||
rm -rf /www/wwwroot/zhiyin.yzrcloud.cn/assets
|
||||
cp -r dist/build/h5/index.html /www/wwwroot/zhiyin.yzrcloud.cn/
|
||||
cp -r dist/build/h5/assets /www/wwwroot/zhiyin.yzrcloud.cn/
|
||||
chown -R www:www /www/wwwroot/zhiyin.yzrcloud.cn/index.html /www/wwwroot/zhiyin.yzrcloud.cn/assets
|
||||
cp -r dist/build/h5/static /www/wwwroot/zhiyin.yzrcloud.cn/
|
||||
cp -f dist/build/h5/robots.txt dist/build/h5/sitemap.xml /www/wwwroot/zhiyin.yzrcloud.cn/
|
||||
chown -R www:www /www/wwwroot/zhiyin.yzrcloud.cn/
|
||||
# 验证无缺失文件
|
||||
grep -oP '["'"'"']([a-zA-Z0-9_-]+\.[a-z]+(\.js|\.css|\.png|\.svg))["'"'"']' /www/wwwroot/zhiyin.yzrcloud.cn/assets/index-*.js | sort -u
|
||||
```
|
||||
@@ -194,7 +202,7 @@ cd zhiyin-app && npm run build:mp-weixin && node scripts/upload-mp.js
|
||||
|
||||
## 六、项目状态与开发阶段
|
||||
|
||||
**当前**: Phase 1.5(商业化 + 全量部署)— v1.0.16
|
||||
**当前**: Phase 1.5(商业化 + 全量部署)— v1.0.17
|
||||
|
||||
| 阶段 | 状态 | 关键交付 |
|
||||
|------|------|---------|
|
||||
@@ -262,7 +270,7 @@ VITE_APP_NAME=AI磁场
|
||||
|
||||
- 远程仓库: `http://127.0.0.1:2999/txai-dev/zhiyin.git`(本机 Gitea,带 token 认证)
|
||||
- 默认分支: `master`
|
||||
- 最新 tag: `v1.0.16`(小程序上传版本 v1.0.16 源自 git tag)
|
||||
- 最新 tag: `v1.0.16`(小程序上传版本 v1.0.17 源自 git tag + 末位自增 1)
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user