mirror of
https://git.sob.moe/cplus/CrepePlus.git
synced 2023-09-22 11:57:11 +02:00
Update CrepePlusManager.bat
This commit is contained in:
parent
17f6673fa0
commit
0688ee6e1c
1 changed files with 2 additions and 57 deletions
|
@ -1,119 +1,64 @@
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
:menu
|
:menu
|
||||||
|
|
||||||
echo Welcome to the CrepePlus Manager
|
echo Welcome to the CrepePlus Manager
|
||||||
|
|
||||||
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
echo 1) Start the CrepePlus server
|
echo 1) Start the CrepePlus server
|
||||||
|
|
||||||
echo 2) Update CrepePlus
|
echo 2) Update CrepePlus
|
||||||
|
|
||||||
echo 3) Install/Update node modules
|
echo 3) Install/Update node modules
|
||||||
|
|
||||||
echo 4) Exit
|
echo 4) Exit
|
||||||
|
|
||||||
echo 5) Want to try CBT3?
|
echo 5) Want to try CBT3?
|
||||||
|
|
||||||
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
echo Created by Midrooms
|
echo Created by Midrooms
|
||||||
|
|
||||||
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
set /p op=Select:
|
set /p op=Select:
|
||||||
|
|
||||||
if "%op%"=="1" goto start
|
if "%op%"=="1" goto start
|
||||||
|
|
||||||
if "%op%"=="2" goto update
|
if "%op%"=="2" goto update
|
||||||
|
|
||||||
if "%op%"=="3" goto NPM
|
if "%op%"=="3" goto NPM
|
||||||
|
|
||||||
if "%op%"=="4" exit
|
if "%op%"=="4" exit
|
||||||
|
|
||||||
if "%op%"=="5" goto cbt3
|
if "%op%"=="5" goto cbt3
|
||||||
|
|
||||||
cls
|
cls
|
||||||
|
|
||||||
goto menu
|
goto menu
|
||||||
|
|
||||||
:start
|
:start
|
||||||
|
|
||||||
cd %cd%\CrepePackage
|
cd %cd%\CrepePackage
|
||||||
|
|
||||||
powershell -Command "Start-Process MITM.bat -WindowStyle Minimized"
|
powershell -Command "Start-Process MITM.bat -WindowStyle Minimized"
|
||||||
|
|
||||||
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
|
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
|
||||||
|
|
||||||
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d http://127.0.0.1:8080 /f
|
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d http://127.0.0.1:8080 /f
|
||||||
|
|
||||||
cls
|
cls
|
||||||
|
|
||||||
echo CrepePlus has enabled the proxy! Some internet functionality may not work.
|
echo CrepePlus has enabled the proxy! Some internet functionality may not work.
|
||||||
|
|
||||||
echo To disable the proxy, head to system settings - Network and internet -> Proxy -> Manual proxy -> Set up -> Use a proxy server checked off -> Save
|
echo To disable the proxy, head to system settings - Network and internet -> Proxy -> Manual proxy -> Set up -> Use a proxy server checked off -> Save
|
||||||
|
|
||||||
echo If you can't figure how to disable the proxy, simply restart your PC.
|
echo If you can't figure how to disable the proxy, simply restart your PC.
|
||||||
|
|
||||||
npm run start
|
npm run start
|
||||||
|
|
||||||
:update
|
:update
|
||||||
|
|
||||||
@echo Updating CrepePlus... You will return to the menu once the update is completed.
|
@echo Updating CrepePlus... You will return to the menu once the update is completed.
|
||||||
|
|
||||||
@RD /S /Q "%CD%\CrepePackage"
|
@RD /S /Q "%CD%\CrepePackage"
|
||||||
|
|
||||||
powershell -Command "Invoke-WebRequest https://github.com/Midrooms/CrepePackages/raw/main/CrepePackage.zip -Outfile CrepePackage.zip"
|
powershell -Command "Invoke-WebRequest https://github.com/Midrooms/CrepePackages/raw/main/CrepePackage.zip -Outfile CrepePackage.zip"
|
||||||
|
|
||||||
powershell -Command "Expand-Archive -Path CrepePackage.zip CrepePackage -Force"
|
powershell -Command "Expand-Archive -Path CrepePackage.zip CrepePackage -Force"
|
||||||
|
|
||||||
DEL CrepePackage.zip
|
DEL CrepePackage.zip
|
||||||
|
|
||||||
cd %cd%\CrepePackage\
|
cd %cd%\CrepePackage\
|
||||||
|
|
||||||
powershell -Command "Start-Process inode.bat -WindowStyle Minimized"
|
powershell -Command "Start-Process inode.bat -WindowStyle Minimized"
|
||||||
|
|
||||||
cls
|
cls
|
||||||
|
|
||||||
goto menu
|
goto menu
|
||||||
|
|
||||||
:NPM
|
:NPM
|
||||||
|
|
||||||
cd %CD%\CrepePackage
|
cd %CD%\CrepePackage
|
||||||
|
|
||||||
start inode.bat
|
start inode.bat
|
||||||
|
|
||||||
cls
|
cls
|
||||||
|
|
||||||
goto menu
|
goto menu
|
||||||
|
|
||||||
:cbt3
|
:cbt3
|
||||||
|
|
||||||
echo Want to play CBT3?
|
echo Want to play CBT3?
|
||||||
|
|
||||||
echo Press any key to download the instructions and also included Fiddler Classic installer.
|
echo Press any key to download the instructions and also included Fiddler Classic installer.
|
||||||
|
|
||||||
echo The files will be located in "CrepePlus-beta"
|
echo The files will be located in "CrepePlus-beta"
|
||||||
|
|
||||||
echo If you don't want to download the files, close the manager and open it again.
|
echo If you don't want to download the files, close the manager and open it again.
|
||||||
|
|
||||||
pause
|
pause
|
||||||
|
powershell -Command "Invoke-WebRequest https://github.com/Midrooms/CrepePackages/raw/main/CrepePlus-beta.zip -Outfile CrepePlus-beta.zip"
|
||||||
powershell -Command "Invoke-WebRequest https://github.com/Midrooms/CrepePackages/raw/main/CrepePackage.zip -Outfile CrepePackage.zip"
|
|
||||||
|
|
||||||
powershell -Command "Expand-Archive -Path CrepePlus-beta.zip CrepePlus-beta -Force"
|
powershell -Command "Expand-Archive -Path CrepePlus-beta.zip CrepePlus-beta -Force"
|
||||||
|
|
||||||
DEL CrepePlus-beta.zip
|
DEL CrepePlus-beta.zip
|
||||||
|
|
||||||
cls
|
cls
|
||||||
|
|
||||||
echo The CrepePlus-beta folder is now located where you ran the manager.
|
echo The CrepePlus-beta folder is now located where you ran the manager.
|
||||||
|
|
||||||
echo Press any key to return to the menu.
|
echo Press any key to return to the menu.
|
||||||
|
|
||||||
pause
|
pause
|
||||||
|
|
||||||
cls
|
cls
|
||||||
|
goto menu
|
||||||
goto menu
|
|
||||||
|
|
Loading…
Reference in a new issue