mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-08-14 13:11:48 +08:00
extra fixes
This commit is contained in:
parent
e6642c8971
commit
4813d413eb
@ -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()
|
||||||
}
|
}
|
@ -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"
|
||||||
|
|
||||||
|
@ -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"
|
Loading…
x
Reference in New Issue
Block a user