CrepePlus/CrepePlusManager.bat

47 lines
1.6 KiB
Batchfile
Raw Normal View History

2023-02-14 13:51:49 +01:00
@echo off
:menu
echo Welcome to CrepePlus 1.8
2023-02-14 13:51:49 +01:00
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo 1) Start the CrepePlus server
echo 2) Update CrepePlus
echo 3) Update/Install node modules
2023-02-14 13:51:49 +01:00
echo 4) Exit
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo Created by Midrooms and rrryfoo
2023-02-14 13:51:49 +01:00
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-04-05 11:23:28 +02:00
set /p op=Select:
2023-02-14 13:51:49 +01:00
if "%op%"=="1" goto start
if "%op%"=="2" goto update
if "%op%"=="3" goto npm
2023-02-14 13:51:49 +01:00
if "%op%"=="4" exit
2023-04-05 11:23:28 +02:00
2023-02-14 13:51:49 +01:00
cls
goto menu
:start
start cmd /k "cd %cd%\CrepePackage\py && @echo off && title CrepePlus mitmdump && timeout /t 3 && mitmdump -s proxy.py -k"
2023-02-14 13:51:49 +01:00
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
cd %cd%\CrepePackage
2023-02-14 13:51:49 +01:00
cls
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 If you can't figure how to disable the proxy, simply restart your PC.
2023-02-14 13:51:49 +01:00
npm run start
:update
@echo Updating CrepePlus...
@RD /S /Q "%cd%\CrepePackage"
2023-04-05 11:23:28 +02:00
powershell -Command "Invoke-WebRequest https://github.com/CrepePlus/CrepePackages/raw/main/CrepePackage.zip -Outfile CrepePackage.zip"
2023-02-14 13:51:49 +01:00
powershell -Command "Expand-Archive -Path CrepePackage.zip CrepePackage -Force"
DEL CrepePackage.zip
start cmd /k "cd %cd%/CrepePackage && npm install"
2023-02-14 13:51:49 +01:00
cls
goto menu
:npm
start cmd /k "cd %cd%/CrepePackage && npm install"
2023-02-14 13:51:49 +01:00
cls
2023-04-05 11:23:28 +02:00
goto menu