forked from wangshengjj/CrepePlus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CrepePlusManager.bat
48 lines (44 loc) · 1.66 KB
/
CrepePlusManager.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@echo off
:menu
echo Welcome to the CrepePlus Manager
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo 1) Start the CrepePlus server
echo 2) Update CrepePlus
echo 3) Install/Update node modules
echo 4) Exit
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo Created by Midrooms and rrryfoo
echo Source code: https://github.com/Midrooms/CrepePlus
echo Docs: https://github.com/Midrooms/CrepePlus/wiki
set /p op=Select:
if "%op%"=="1" goto start
if "%op%"=="2" goto update
if "%op%"=="3" goto NPM
if "%op%"=="4" exit
cls
goto menu
:start
cd %cd%\CrepePackage
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 ProxyServer /t REG_SZ /d http://127.0.0.1:8080 /f
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.
npm run start
:update
@echo Updating CrepePlus... You will return to the menu once the update is completed.
@RD /S /Q "%CD%\CrepePackage"
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"
DEL CrepePackage.zip
cd %cd%\CrepePackage\
powershell -Command "Start-Process inode.bat -WindowStyle Minimized"
cls
goto menu
:NPM
cd %CD%\CrepePackage
start inode.bat
cls
goto menu