generated from LiteLDev/liteloaderbds-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate_sdk.cmd
25 lines (20 loc) · 863 Bytes
/
update_sdk.cmd
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
@echo off
setlocal enabledelayedexpansion
rem Use system proxy to access git repo if found it configured
for /f "tokens=3* delims= " %%i in ('Reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable') do (
if %%i==0x1 (
echo [INFO] System Proxy enabled. Adapting proxy settings...
for /f "tokens=3* delims= " %%a in ('Reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer') do set PROXY_ADDR=%%a
set http_proxy=http://!PROXY_ADDR!
set https_proxy=http://!PROXY_ADDR!
echo [INFO] Proxy settings adapted.
echo.
)
)
echo [INFO] Updating SDK...
git submodule update --init --remote
rem Delete out-of-date BDS libs
del /f SDK\Lib\bedrock_server_api.lib 2>nul
del /f SDK\Lib\bedrock_server_var.lib 2>nul
echo [INFO] SDK updated.
pause