update.bat
@echo off
REM Reinstall the latest context-compressor code into LM Studio.
REM Run this after the plugin source changes. LM Studio must be running.
cd /d %~dp0
if not exist node_modules (
echo Installing dependencies...
call npm install --no-fund --no-audit
if errorlevel 1 goto :fail
)
set "LMS=%USERPROFILE%\.cache\lm-studio\bin\lms.exe"
if not exist "%LMS%" set "LMS=lms"
echo Installing the latest plugin build into LM Studio...
call "%LMS%" dev --install -y
if errorlevel 1 goto :fail
echo.
echo Done. LM Studio is now running the latest code.
pause
exit /b 0
:fail
echo.
echo Install failed. Is LM Studio running? It must be open for this step.
pause
exit /b 1
update.bat
@echo off
REM Reinstall the latest context-compressor code into LM Studio.
REM Run this after the plugin source changes. LM Studio must be running.
cd /d %~dp0
if not exist node_modules (
echo Installing dependencies...
call npm install --no-fund --no-audit
if errorlevel 1 goto :fail
)
set "LMS=%USERPROFILE%\.cache\lm-studio\bin\lms.exe"
if not exist "%LMS%" set "LMS=lms"
echo Installing the latest plugin build into LM Studio...
call "%LMS%" dev --install -y
if errorlevel 1 goto :fail
echo.
echo Done. LM Studio is now running the latest code.
pause
exit /b 0
:fail
echo.
echo Install failed. Is LM Studio running? It must be open for this step.
pause
exit /b 1