mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-05-07 05:32:47 +08:00
- Windows Gateway 启动改为前台 spawn 模式(绕过 schtasks 管理员权限) - 添加全局 Gateway 未启动引导横幅(黄色提示条 + 一键启动按钮) - 所有页面加载动画改为脉冲效果 - 统一 Windows cmd /c 调用加 CREATE_NO_WINDOW 标志 - 托盘菜单复用 service.rs 逻辑 - 新增 utils.rs 封装 openclaw_command - 修复 config 文件 UI 字段污染问题 - 添加 dev.ps1 启动脚本
31 lines
843 B
PowerShell
31 lines
843 B
PowerShell
#!/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
|