-
Notifications
You must be signed in to change notification settings - Fork 9
/
android-clt.json
71 lines (71 loc) · 2.64 KB
/
android-clt.json
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"version": "11076708",
"description": "The official Android command line tools",
"homepage": "https://developer.android.com/studio#command-line-tools-only",
"license": {
"identifier": "Freeware",
"url": "https://developer.android.com/studio/terms.html"
},
"suggest": {
"Java": "java/openjdk17"
},
"url": "https://dl.google.com/android/repository/commandlinetools-win-11076708_latest.zip",
"hash": "4d6931209eebb1bfb7c7e8b240a6a3cb3ab24479ea294f3539429574b1eec862",
"extract_to": "cmdline-tools",
"pre_install": [
"Rename-Item \"$dir\\cmdline-tools\\cmdline-tools\" -NewName 'latest'",
"# For `env_add_path`:",
"ensure \"$dir\\platform-tools\" | Out-Null"
],
"post_install": [
"# Persistence",
"Get-ChildItem \"$persist_dir\\cmdline-tools\" -Exclude 'latest' | Move-Item -Destination \"$dir\\cmdline-tools\" -Force",
"@('emulator', 'ndk-bundle', 'platform-tools', 'tools') | ForEach-Object {",
" if (Test-Path \"$persist_dir\\$_\") {",
" ensure \"$dir\\$_\" | Out-Null",
" Move-Item \"$persist_dir\\$_\\*\" \"$dir\\$_\" -Force",
" }",
"}",
"if (!(Get-Command 'java' -ErrorAction SilentlyContinue)) {",
" warn \"'Java' is required to run Android SDK Commandline tools.\"",
"}"
],
"env_add_path": [
"cmdline-tools\\latest\\bin",
"platform-tools"
],
"env_set": {
"ANDROID_HOME": "$dir"
},
"persist": [
"add-ons",
"build-tools",
"cmake",
"extras",
"licenses",
"ndk",
"patcher",
"platforms",
"skiaparser",
"sources",
"system-images"
],
"pre_uninstall": [
"# Persistence",
"ensure \"$persist_dir\\cmdline-tools\" | Out-Null",
"Get-ChildItem \"$dir\\cmdline-tools\" -Exclude 'latest' | Copy-Item -Destination \"$persist_dir\\cmdline-tools\" -Force -Recurse",
"@('emulator', 'ndk-bundle', 'platform-tools', 'tools') | ForEach-Object {",
" if ((Test-Path \"$dir\\$_\") -and ((Get-ChildItem \"$dir\\$_\").Count -gt 0)) {",
" Copy-Item \"$dir\\$_\" \"$persist_dir\" -Force -Recurse",
" }",
"}"
],
"checkver": "commandlinetools-win-(\\d+)",
"autoupdate": {
"url": "https://dl.google.com/android/repository/commandlinetools-win-$version_latest.zip",
"hash": {
"url": "https://developer.android.com/studio",
"regex": "commandlinetools-win(?:.*\\n){3}.*<td>($sha256)"
}
}
}