Files
dudu/desktop/run-dev.sh
T
wangjia 4ec294be40
ci / server (push) Failing after 10s
ci / design-system (push) Failing after 11s
docs+chore: 补 CLAUDE.md(联调启动 + 真相源约定)与 desktop/run-dev.sh
(此前误报已完成实为未提交,现真实补上。)
- desktop/run-dev.sh:桌面端启动脚本,对齐 server/run-dev.sh,含麦克风权限提示
- CLAUDE.md:两条联调启动命令 + 麦克风/邮箱登录踩坑 + 真相源与闸约定 +
  透明窗口范式 + TODO 约定

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-11 21:02:53 +08:00

17 lines
740 B
Bash
Executable File
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.
#!/bin/sh
# 本地起桌面端(在 desktop/ 目录下运行):Tauri devRust 系统层 + Vite 前端热更新)。
# 前置:后端已起(../server/run-dev.sh);首次运行自动 npm install。
#
# ⚠️ 必须从你自己的终端前台运行:dev 跑的是裸二进制 target/debug/dudu-desktop
# 它是本终端的子进程,macOS 把麦克风权限算在终端头上。首次按住说话若没声音,
# 去 系统设置 → 隐私与安全性 → 麦克风 勾选本终端(iTerm/Terminal),
# 再完全退出 dudu 重启(TCC 权限变更需重启进程生效)。
set -e
if [ ! -d node_modules ]; then
echo "[run-dev] 首次运行,安装依赖…"
npm install
fi
exec npm run tauri dev