feat:项目打包成Electron
This commit is contained in:
18
desktop/start-dev.sh
Executable file
18
desktop/start-dev.sh
Executable 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
|
||||
Reference in New Issue
Block a user