mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-12 03:51:29 +00:00
7d751a8160
Signed-off-by: Michael Keller <github@ike.ch>
24 lines
800 B
Bash
Executable file
24 lines
800 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Use this to re-create a docker container for building Android binaries
|
|
|
|
# Google makes it intentionally very hard to download the command line tools
|
|
# the URL is constantly changing and the website requires you to click through
|
|
# a license.
|
|
#
|
|
# Today this URL works:
|
|
# https://dl.google.com/android/repository/commandlinetools-linux-6858069_latest.zip
|
|
#
|
|
# If this fails, go to https://developer.android.com/studio#cmdline-tools and
|
|
# click through for yourself, and then update the URL in the Dockerfile
|
|
|
|
# copy the dependency script into this folder
|
|
cp ../../../packaging/android/android-build-setup.sh .
|
|
cp ../../../packaging/android/variables.sh .
|
|
|
|
if [ "$1X" == "-no-docker-buildX" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
# create the container (this takes a while)
|
|
docker build -t android-build .
|