File tree 6 files changed +17
-15
lines changed
6 files changed +17
-15
lines changed Original file line number Diff line number Diff line change 3
3
set -ex
4
4
5
5
NDK=android-ndk-r21d
6
- wget --tries=20 https://dl.google.com/android/repository/${NDK} -linux-x86_64.zip
6
+ wget --tries=20 -q https://dl.google.com/android/repository/${NDK} -linux-x86_64.zip
7
7
unzip -q ${NDK} -linux-x86_64.zip
8
8
9
9
case " $1 " in
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ set -ex
9
9
# located in https://github.com/appunite/docker by just wrapping it in a script
10
10
# which apparently magically accepts the licenses.
11
11
12
- SDK=4333796
13
- mkdir sdk
14
- wget -- tries=20 https://dl.google.com/android/repository/sdk-tools- linux-${SDK} .zip
15
- unzip -q -d sdk sdk -tools-linux-${SDK} .zip
12
+ SDK=6609375
13
+ mkdir -p sdk/cmdline-tools
14
+ wget -q -- tries=20 https://dl.google.com/android/repository/commandlinetools- linux-${SDK} _latest .zip
15
+ unzip -q -d sdk/cmdline -tools commandlinetools -linux-${SDK} _latest .zip
16
16
17
17
case " $1 " in
18
18
arm | armv7)
@@ -51,14 +51,14 @@ echo '#Fri Nov 03 10:11:27 CET 2017 count=0' >> /root/.android/repositories.cfg
51
51
#
52
52
# | grep -v = || true removes the progress bar output from the sdkmanager
53
53
# which produces an insane amount of output.
54
- yes | ./sdk/tools/bin/sdkmanager --licenses --no_https | grep -v = || true
55
- yes | ./sdk/tools/bin/sdkmanager --no_https \
54
+ yes | ./sdk/cmdline-tools/ tools/bin/sdkmanager --licenses --no_https | grep -v = || true
55
+ yes | ./sdk/cmdline-tools/ tools/bin/sdkmanager --no_https \
56
56
" emulator" \
57
57
" platform-tools" \
58
58
" platforms;android-${api} " \
59
59
" ${image} " | grep -v = || true
60
60
61
61
echo " no" |
62
- ./sdk/tools/bin/avdmanager create avd \
62
+ ./sdk/cmdline-tools/ tools/bin/avdmanager create avd \
63
63
--name " ${1} " \
64
64
--package " ${image} " | grep -v = || true
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ main() {
14
14
apt-get install --no-install-recommends e2tools
15
15
16
16
pushd " ${td} "
17
- wget --tries=5 " ${URL} /${name} "
17
+ wget -q - -tries=5 " ${URL} /${name} "
18
18
unzip -q " ${name} "
19
19
20
20
local system
Original file line number Diff line number Diff line change @@ -19,13 +19,14 @@ WORKDIR /android/
19
19
COPY android* /android/
20
20
21
21
ENV ANDROID_ARCH=aarch64
22
- ENV PATH=$PATH:/android/ndk-$ANDROID_ARCH/bin:/android/sdk/tools:/android/sdk/platform-tools
22
+ ENV PATH=$PATH:/android/ndk-$ANDROID_ARCH/bin:/android/sdk/cmdline-tools/ tools:/android/sdk/platform-tools
23
23
24
24
RUN sh /android/android-install-ndk.sh $ANDROID_ARCH
25
25
RUN sh /android/android-install-sdk.sh $ANDROID_ARCH
26
26
RUN mv /root/.android /tmp
27
27
RUN chmod 777 -R /tmp/.android
28
- RUN chmod 755 /android/sdk/tools/* /android/sdk/emulator/qemu/linux-x86_64/*
28
+ RUN chmod 755 /android/sdk/cmdline-tools/tools/* /android/sdk/emulator/qemu/linux-x86_64/*
29
+ RUN ls -a /android/sdk/platform-tools
29
30
30
31
ENV PATH=$PATH:/rust/bin \
31
32
CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=aarch64-linux-android-gcc \
Original file line number Diff line number Diff line change @@ -19,13 +19,14 @@ WORKDIR /android/
19
19
COPY android* /android/
20
20
21
21
ENV ANDROID_ARCH=arm
22
- ENV PATH=$PATH:/android/ndk-$ANDROID_ARCH/bin:/android/sdk/tools:/android/sdk/platform-tools
22
+ ENV PATH=$PATH:/android/ndk-$ANDROID_ARCH/bin:/android/sdk/cmdline-tools/ tools:/android/sdk/platform-tools
23
23
24
24
RUN sh /android/android-install-ndk.sh $ANDROID_ARCH
25
25
RUN sh /android/android-install-sdk.sh $ANDROID_ARCH
26
26
RUN mv /root/.android /tmp
27
27
RUN chmod 777 -R /tmp/.android
28
- RUN chmod 755 /android/sdk/tools/* /android/sdk/emulator/qemu/linux-x86_64/*
28
+ RUN chmod 755 /android/sdk/cmdline-tools/tools/* /android/sdk/emulator/qemu/linux-x86_64/*
29
+ RUN ls -a /android/sdk/platform-tools
29
30
30
31
ENV PATH=$PATH:/rust/bin \
31
32
CARGO_TARGET_ARM_LINUX_ANDROIDEABI_LINKER=arm-linux-androideabi-gcc \
Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ WORKDIR /android/
20
20
COPY android* /android/
21
21
22
22
ENV ANDROID_ARCH=i686
23
- ENV PATH=$PATH:/android/ndk-$ANDROID_ARCH/bin:/android/sdk/tools:/android/sdk/platform-tools
23
+ ENV PATH=$PATH:/android/ndk-$ANDROID_ARCH/bin:/android/sdk/cmdline- tools/tools :/android/sdk/cmdline-tools /platform-tools
24
24
25
25
RUN sh /android/android-install-ndk.sh $ANDROID_ARCH
26
26
RUN sh /android/android-install-sdk.sh $ANDROID_ARCH
27
27
RUN mv /root/.android /tmp
28
28
RUN chmod 777 -R /tmp/.android
29
- RUN chmod 755 /android/sdk/tools/* /android/sdk/emulator/qemu/linux-x86_64/*
29
+ RUN chmod 755 /android/sdk/cmdline-tools/ tools/* /android/sdk/emulator/qemu/linux-x86_64/*
30
30
31
31
ENV PATH=$PATH:/rust/bin \
32
32
CARGO_TARGET_I686_LINUX_ANDROID_LINKER=i686-linux-android-gcc \
You can’t perform that action at this time.
0 commit comments