# 码枪堂启动脚本
Write-Host "启动码枪堂..." -ForegroundColor Cyan

$projectDir = "D:\共享\extracted_files\`$PLUGINSDIR\app-64\resources\decompiled_code"

# 切换到项目目录
Set-Location $projectDir

# 检查依赖
if (-not (Test-Path "node_modules\electron")) {
    Write-Host "安装 Electron..." -ForegroundColor Yellow
    npm install electron --save-dev
}

# 启动应用
Write-Host "启动应用..." -ForegroundColor Green
npx electron .
