32 lines
834 B
Batchfile
32 lines
834 B
Batchfile
@echo off
|
||
chcp 65001 >nul
|
||
title 码枪堂启动器
|
||
color 0A
|
||
|
||
echo.
|
||
echo ╔══════════════════════════════════════╗
|
||
echo ║ 码枪堂 启动器 v1.0 ║
|
||
echo ╚══════════════════════════════════════╝
|
||
echo.
|
||
|
||
cd /d "D:\共享\extracted_files\$PLUGINSDIR\app-64\resources\decompiled_code"
|
||
|
||
:: 检查 node_modules
|
||
if not exist "node_modules\electron" (
|
||
echo [!] Electron 未安装,正在安装...
|
||
call npm install electron --save-dev
|
||
)
|
||
|
||
echo [√] 依赖检查完成
|
||
echo.
|
||
echo [*] 正在启动码枪堂...
|
||
echo.
|
||
|
||
npx electron .
|
||
|
||
if errorlevel 1 (
|
||
echo.
|
||
echo [×] 启动失败!
|
||
echo 请检查 Node.js 是否正确安装
|
||
pause
|
||
) |