Files
clawpanel/dev.ps1
晴天 53f46d8ef2 feat: Windows 兼容性全面改进
- Windows Gateway 启动改为前台 spawn 模式(绕过 schtasks 管理员权限)
- 添加全局 Gateway 未启动引导横幅(黄色提示条 + 一键启动按钮)
- 所有页面加载动画改为脉冲效果
- 统一 Windows cmd /c 调用加 CREATE_NO_WINDOW 标志
- 托盘菜单复用 service.rs 逻辑
- 新增 utils.rs 封装 openclaw_command
- 修复 config 文件 UI 字段污染问题
- 添加 dev.ps1 启动脚本
2026-03-02 13:00:16 +08:00

31 lines
843 B
PowerShell
Raw Permalink 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.
#!/usr/bin/env pwsh
# ClawPanel 开发服务器启动脚本
Write-Host "🚀 启动 ClawPanel 开发服务器..." -ForegroundColor Cyan
# 检查 Node.js
if (-not (Get-Command node -ErrorAction SilentlyContinue)) {
Write-Host "❌ 未找到 Node.js请先安装" -ForegroundColor Red
exit 1
}
# 检查 Rust
if (-not (Get-Command cargo -ErrorAction SilentlyContinue)) {
Write-Host "❌ 未找到 Rust请先安装" -ForegroundColor Red
exit 1
}
# 检查依赖
if (-not (Test-Path "node_modules")) {
Write-Host "📦 安装前端依赖..." -ForegroundColor Yellow
npm install
}
if (-not (Test-Path "src-tauri/target")) {
Write-Host "🦀 首次编译 Rust可能需要几分钟..." -ForegroundColor Yellow
}
# 启动开发服务器
Write-Host "✨ 启动中..." -ForegroundColor Green
npm run tauri dev