18 lines
448 B
Batchfile
18 lines
448 B
Batchfile
@echo off
|
|
REM JUC500 Tauri shell — auto-launch on cable connect
|
|
cd /d "%~dp0.."
|
|
set "JUC500_ROOT=%CD%"
|
|
set "JUC500_USE_TAURI=1"
|
|
|
|
set "BIN=%CD%\juc500-app\src-tauri\target\release\juc500-app.exe"
|
|
if exist "%BIN%" goto run
|
|
set "BIN=%CD%\juc500-app\src-tauri\target\debug\juc500-app.exe"
|
|
if exist "%BIN%" goto run
|
|
|
|
echo [!] Tauri app not built. Run: cd juc500-app ^&^& npm install ^&^& npm run tauri build
|
|
exit /b 1
|
|
|
|
:run
|
|
start "" "%BIN%"
|
|
exit /b 0
|