@echo off
title MaQiangTang

echo.
echo Starting MaQiangTang...
echo.

cd /d "D:\共享\extracted_files\$PLUGINSDIR\app-64\resources\decompiled_code"

if errorlevel 1 (
    echo Cannot find directory!
    pause
    exit /b 1
)

if not exist "node_modules\electron" (
    echo Installing Electron...
    npm install electron --save-dev
)

echo Launching...
npx electron .

pause