extra fixes

This commit is contained in:
SpikeHD 2022-05-01 19:39:47 -07:00
parent e6642c8971
commit 4813d413eb
3 changed files with 10 additions and 3 deletions

View File

@ -21,7 +21,10 @@ async function downloadGC(branch) {
config.grasscutterBranch = branch config.grasscutterBranch = branch
// Set gc path for people with launcher enabled // Set gc path for people with launcher enabled
config.serverFolder = `${NL_CWD}\\gc-${branch}\\` config.serverFolder = `${NL_CWD}/gc-${branch}/grasscutter.jar`
Neutralino.storage.setData('config', JSON.stringify(config)) Neutralino.storage.setData('config', JSON.stringify(config))
// Display folder after saving config
displayServerFolder()
} }

View File

@ -6,6 +6,8 @@ set BRANCH=%3
set FOLDER_NAME=".\gc-%BRANCH%" set FOLDER_NAME=".\gc-%BRANCH%"
set FOLDER_NAME=%FOLDER_NAME:"=% set FOLDER_NAME=%FOLDER_NAME:"=%
title GC Download Script
if not exist "%FOLDER_NAME%" mkdir "%FOLDER_NAME%" if not exist "%FOLDER_NAME%" mkdir "%FOLDER_NAME%"
if not exist ".\temp" mkdir ".\temp" if not exist ".\temp" mkdir ".\temp"
@ -39,5 +41,5 @@ echo Done, latest Grasscutter %BRANCH% now downloaded in %FOLDER_NAME%
pause pause
exit /b taskkill /f /fi "WINDOWTITLE eq GC Download Script"

View File

@ -3,6 +3,8 @@
set ORIGIN=%1 set ORIGIN=%1
set ORIGIN=%ORIGIN:"=% set ORIGIN=%ORIGIN:"=%
title Grassclipper Installer
echo Downloading proxy server... echo Downloading proxy server...
:: Make sure we are in the right directory :: Make sure we are in the right directory
@ -48,4 +50,4 @@ echo Done! You can now open GrassClipper.exe!
pause pause
exit /b taskkill /f /fi "WINDOWTITLE eq Grassclipper Installer"