Files
ttstd-3d-director/快速启动说明.txt
tongtongstudio b9fd289caf chore: 迁移到 pnpm 并更新打包与测试文档
- 用 pnpm 替换 npm,锁定 pnpm@10.33.0,删除 package-lock.json 相关说明
- package.json 将渲染层依赖移入 devDependencies,减小 app.asar 体积
- 新增 electron:smoke 冒烟脚本与 icon 生成脚本
- win 平台设置 AppUserModelID,修复任务栏图标归组
- 清理 tsBuildInfoFile 输出路径至 node_modules/.tmp
- 更新测试断言以匹配画幅遮罩、取景器缩放与模型库外部资产行为
- README 与打包指南补充 pnpm、镜像与常见问题说明
2026-09-16 20:03:57 +08:00

44 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
一力三期BMS - 故事AI导演工作台 快速启动
==========================================
最简单的方式:双击启动.bat
使用步骤:
1. 确保已安装 Node.js 18+(下载:https://nodejs.org)
2. 安装 pnpm:命令行执行 npm i -g pnpm
3. 双击 双击启动.bat
- 缺少 node_modules 时脚本会自动执行 pnpm install
- 缺少 dist/index.html 时脚本会自动执行 pnpm run build
4. 等待服务启动
5. 浏览器访问 http://localhost:3000(脚本会打印实际地址)
特点:
✓ 无需安装Electron
✓ 无需打包成exe
✓ 文件小(仅几KB)
✓ 启动快
✓ 适合内部使用
技术说明:
- 使用 pnpm exec vite preview 提供静态文件服务(端口 3000)
- 服务运行时不能关闭命令行窗口
注意事项:
- 需要用户电脑已安装 Node.js 与 pnpm
- 不是真正的桌面应用(要桌面应用请用 build-electron.bat 打包)
- 需要手动打开浏览器
停止服务:
在命令行窗口按 Ctrl+C
如果出现问题:
1. 确保 Node.js 与 pnpm 已正确安装(node -v、pnpm -v)
2. 确保在项目目录下运行
3. 检查端口3000是否被占用
如果端口被占用,可以修改端口:
编辑 双击启动.bat,将 --port 3000 改为 --port 3001(或其他端口)
需要桌面应用?
参考 README-PACKAGE.md 或 使用说明.txt,用 build-electron.bat 打成 exe。