mirror of
https://github.com/SillyTavern/SillyTavern-Launcher.git
synced 2026-01-26 17:09:44 +00:00
use node.lts
This commit is contained in:
@@ -273,7 +273,7 @@ if %errorlevel% neq 0 (
|
||||
echo %yellow_bg%[%time%]%reset% %yellow_fg_strong%[WARN] winget failed to install Git or is not installed.%reset%
|
||||
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Downloading Git using powershell...
|
||||
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('https://github.com/git-for-windows/git/releases/download/v2.45.2.windows.1/Git-2.45.2-64-bit.exe', '%bin_dir%\git.exe')"
|
||||
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('https://github.com/git-for-windows/git/releases/download/v2.47.0.windows.2/Git-2.47.0.2-64-bit.exe', '%bin_dir%\git.exe')"
|
||||
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing git...
|
||||
start /wait %bin_dir%\git.exe /VERYSILENT /NORESTART
|
||||
@@ -1423,7 +1423,7 @@ goto :update_manager_core_utilities
|
||||
|
||||
|
||||
:update_nodejs
|
||||
winget upgrade OpenJS.NodeJS
|
||||
winget upgrade OpenJS.NodeJS.LTS
|
||||
pause
|
||||
goto :update_manager_core_utilities
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
:install_nodejs
|
||||
title STL [INSTALL NODEJS]
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing Node.js...
|
||||
winget install -e --id OpenJS.NodeJS
|
||||
winget install -e --id OpenJS.NodeJS.LTS
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%Node.js is installed.%reset%
|
||||
|
||||
REM Prompt user to restart
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
:uninstall_nodejs
|
||||
title STL [UNINSTALL-NODEJS]
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Uninstalling Node.js...
|
||||
winget uninstall --id OpenJS.NodeJS
|
||||
winget uninstall --id OpenJS.NodeJS.LTS
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%Node.js has been uninstalled successfully.%reset%
|
||||
goto :app_uninstaller_core_utilities
|
||||
Reference in New Issue
Block a user