mirror of
https://github.com/SillyTavern/SillyTavern-Launcher.git
synced 2026-02-19 04:39:56 +00:00
Users shouldn't see much of a difference on the front end. Version # 1.2.0 -> V1.2.1 Removed the following from Launcher.bat and created modular bat files for the sub-functionality. - :start_st - > start_st.bat - :exit - > exit_stl.bat - :unresolved_unmerged -> unresolved_unmerged.bat - :remove_pip_cache -> remove_pip_cache.bat - :remove_node_modules - > remove_node_modules.bat - :onboarding_flow -> onboarding_flow.bat - :find_app_port -> find_app_port.bat - :export_dxdiag -> export_dxdiag.bat Moved all logs, dxdiag_info.txt and pids.txt to bin/logs/ updated start_st_rl to use same launching and auto-fixing function as start_st Fixed :onboarding_flow to work with the new user data structure of SillyTavern Added redirect flow controllers to troubleshooting sub function menus so they can redirect back to troubleshooting or home menus based on where they are called.
19 lines
443 B
Batchfile
19 lines
443 B
Batchfile
@echo off
|
|
REM Set base directory
|
|
set "base_dir=%~dp0\..\.."
|
|
|
|
:remove_node_modules
|
|
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Removing node_modules folder...
|
|
cd /d "%st_install_path%"
|
|
rmdir /s /q "node_modules"
|
|
del package-lock.json
|
|
call npm cache clean --force
|
|
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% node_modules successfully removed.
|
|
pause
|
|
|
|
if "%caller%"=="home" (
|
|
exit /b 1
|
|
) else (
|
|
exit /b 0
|
|
)
|