-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquick_sdk.bat
More file actions
28 lines (25 loc) · 1.22 KB
/
Copy pathquick_sdk.bat
File metadata and controls
28 lines (25 loc) · 1.22 KB
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
@echo off
set "SDK=C:\Users\Anonymous\Downloads\keymon project\KeyMon\android-sdk"
mkdir "%SDK%\platforms" 2>nul
mkdir "%SDK%\build-tools" 2>nul
if not exist "%SDK%\platforms\android-34\android.jar" (
echo Downloading Platform 34 via curl...
curl -L -sS -o "%SDK%\platform-34.zip" "https://dl.google.com/android/repository/platform-34-ext7_r02.zip"
mkdir "%SDK%\platforms\_tmp" 2>nul
tar -xf "%SDK%\platform-34.zip" -C "%SDK%\platforms\_tmp"
del "%SDK%\platform-34.zip" 2>nul
for /d %%d in ("%SDK%\platforms\_tmp\android-34*") do move /y "%%d" "%SDK%\platforms\android-34" >nul 2>nul
rd /s /q "%SDK%\platforms\_tmp" 2>nul
echo Platform 34 ready!
)
if not exist "%SDK%\build-tools\34.0.0\aapt2.exe" (
echo Downloading Build-Tools 34 via curl...
curl -L -sS -o "%SDK%\build-tools.zip" "https://dl.google.com/android/repository/build-tools_r34-windows.zip"
mkdir "%SDK%\build-tools\_tmp" 2>nul
tar -xf "%SDK%\build-tools.zip" -C "%SDK%\build-tools\_tmp"
del "%SDK%\build-tools.zip" 2>nul
for /d %%d in ("%SDK%\build-tools\_tmp\android-*") do move /y "%%d" "%SDK%\build-tools\34.0.0" >nul 2>nul
rd /s /q "%SDK%\build-tools\_tmp" 2>nul
echo Build-Tools 34 ready!
)
echo Android SDK complete!