-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add android cmdline-tools, add corretto@21 (#530)
* feat: add android cmdline-tools * feat: add corretto@21, digests
- Loading branch information
1 parent
8ef0c3b
commit 1131618
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
description = "Command Line Tools for Android" | ||
homepage = "https://developer.android.com/tools/releases/cmdline-tools" | ||
binaries = ["cmdline-tools/latest/bin/*"] | ||
requires = ["jdk"] | ||
test = "sdkmanager --version" | ||
env = { | ||
"ANDROID_HOME": "${root}/commandline-tools", | ||
} | ||
|
||
// # the sdkmanager expects to reside in an environment called: | ||
// # /YOURPATH/cmdline-tools/SOMETHING/bin but unpacks to /YOURPATH/cmdline-tools/bin for Linux anyway. | ||
on "unpack" { | ||
run { | ||
cmd = "/bin/bash" | ||
args = ["-c", "set -euxo pipefail; mkdir -p ${root}/cmdline-tools/latest; mv ${root}/cmdline-tools/{bin,lib,NOTICE.txt,source.properties} ${root}/cmdline-tools/latest/"] | ||
} | ||
} | ||
|
||
platform "darwin" { | ||
source = "https://dl.google.com/android/repository/commandlinetools-mac-${version_}_latest.zip" | ||
} | ||
|
||
platform "linux" { | ||
source = "https://dl.google.com/android/repository/commandlinetools-linux-${version_}_latest.zip" | ||
} | ||
|
||
// # this is a hack because we do not have a minor version, and hermit expects a `.` in the version | ||
version "11076708.0" { | ||
vars = { | ||
"version_": "11076708", | ||
} | ||
} | ||
|
||
sha256sums = { | ||
"https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip": "2d2d50857e4eb553af5a6dc3ad507a17adf43d115264b1afc116f95c92e5e258", | ||
"https://dl.google.com/android/repository/commandlinetools-mac-11076708_latest.zip": "7bc5c72ba0275c80a8f19684fb92793b83a6b5c94d4d179fc5988930282d7e64", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters