diff --git a/Dockerfile b/Dockerfile index a9dccc9..7caf424 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,7 @@ ENV JAVA_HOME="/usr/lib/jvm/java-11-openjdk/" #ENTRYPOINT bash -c 'sleep 10000' ENV LIBRARY_PATH="$LIBRARY_PATH:$BUILD_TOOLS_LATEST/lib" ARG YESACCEPT=n +RUN test "$YESACCEPT" = "y" || { printf "\033[31;1;4m%s\n%s\033[0m " "FAILED TO BUILD CONTAINER: You did not ACCEPT THE UPSTREAM LICENSE" " -> export YESACCEPT=y" >&2; exit 1; } RUN echo you selected to accept the licenses/TOS RUN echo "$YESACCEPT" | sdkmanager --install "build-tools;33.0.2" RUN echo "$YESACCEPT" | sdkmanager --install "platforms;android-33" diff --git a/Makefile b/Makefile index 04e859f..0832ed8 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ all: build install build: docker-compose run --rm compile - ln -sv apk/bin/example.app.apk ./ + ln -sf apk/bin/example.app.apk ./; test -e ./example.app.apk || rm ./example.app.apk install: adb install -r ./example.app.apk