AI media harness for planning, generating, and editing locally
TypeScript
Use packaged app storage in local launcher
Bitti2f8b530e80d9
diff --git a/run.cmd b/run.cmdindex 8fd9c76..28c617b 100644--- a/run.cmd+++ b/run.cmd@@ -3,6 +3,10 @@ setlocal EnableExtensionspushd "%~dp0" || exit /b 1+if /I "%~1"=="--help" goto :help+if not "%~1"=="" if /I not "%~1"=="--build-only" goto :usage_error+if not "%~2"=="" goto :usage_error+where.exe npm.cmd >nul 2>nul || (echo ERROR: npm was not found on PATH. Install Node.js first.goto :fail@@ -25,14 +29,40 @@ echo Installing locked frontend dependencies...call npm ci --no-audit --no-fund || goto :fail:run-rem Vite serves current UI sources; Cargo rebuilds only changed Rust code.-rem Keep hot reload running and avoid release builds, bundling, and packaging.-echo Starting Slopus from the current source...-call npm run tauri -- dev %*+rem Embed the frontend so the app uses the same tauri.localhost storage as+rem packaged Slopus. tauri dev uses a separate localhost:1420 storage origin.+rem Debug builds keep Cargo's incremental cache and skip release optimization.+echo Building Slopus from the current source...+call npm run tauri -- build --debug --no-bundle || goto :fail++set "SLOPUS_TARGET_DIR=%CD%\src-tauri\target"+if defined CARGO_TARGET_DIR set "SLOPUS_TARGET_DIR=%CARGO_TARGET_DIR%"+set "SLOPUS_RUN_EXE=%SLOPUS_TARGET_DIR%\debug\slopus.exe"+if not exist "%SLOPUS_RUN_EXE%" (+ echo ERROR: The built executable was not found at "%SLOPUS_RUN_EXE%".+ goto :fail+)+if /I "%~1"=="--build-only" (+ popd+ exit /b 0+)++echo Starting Slopus with your saved projects and settings...+"%SLOPUS_RUN_EXE%"set "SLOPUS_EXIT_CODE=%ERRORLEVEL%"popdexit /b %SLOPUS_EXIT_CODE%+:help+echo Usage: run.cmd [--build-only]+echo Builds the latest local source and runs it with packaged Slopus's saved data.+echo --build-only builds without opening the app.+popd+exit /b 0++:usage_error+echo ERROR: Use run.cmd or run.cmd --build-only.+:failpopdexit /b 1