feat:项目打包成Electron

This commit is contained in:
2026-06-14 18:10:58 +08:00
parent 7a0443ebcc
commit 8970b63800
20 changed files with 3895 additions and 11 deletions

18
desktop/start-dev.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
# 启动 CamTalk Desktop 开发环境
DESKTOP_DIR="/Users/cfy/code/XEngineers/CamTalk/CamTalk/desktop"
cd "$DESKTOP_DIR" || exit 1
echo "[INFO] 启动 Electron 开发模式..."
echo "[INFO] 工作目录: $(pwd)"
# 确保 electron-vite 存在
if [ ! -f "node_modules/.bin/electron-vite" ]; then
echo "[ERROR] electron-vite 未安装,请先运行 npm install"
exit 1
fi
# 启动 electron-vite
NODE_ENV=development ./node_modules/.bin/electron-vite dev