Files
Pierre Geeraert 6870349961
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8m9s
different way to import the XPAK
2025-05-28 14:36:14 +01:00

24 lines
995 B
Docker

ARG BUILD_TOOLS_VERSION="36.0.0"
ARG APKTOOL_VERSION="2.11.1"
FROM python:3.13-slim
ARG BUILD_TOOLS_VERSION
ARG APKTOOL_VERSION
WORKDIR /xapktoapk
COPY xapktoapk.py docker/entrypoint.sh data/spotify.xapk ./
RUN chmod +x ./entrypoint.sh
# Dependencies: wget, java, keytool, zipalign, apksigner, apktool
RUN apt update && apt -y install wget sdkmanager default-jdk-headless
RUN sdkmanager --install "build-tools;${BUILD_TOOLS_VERSION}"
ENV PATH="$PATH:/opt/android-sdk/build-tools/${BUILD_TOOLS_VERSION}"
RUN \
wget -q https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool -O /usr/local/bin/apktool && \
wget -q https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_${APKTOOL_VERSION}.jar -O /usr/local/bin/apktool.jar && \
wget -q https://gitea.tryton.geeraert.eu/pi-ux-ce/revanced_manager/raw/branch/main/data/spotify.xapk -O /tmp/spotify.xapk && \
chmod +x /usr/local/bin/apktool /usr/local/bin/apktool.jar
ENTRYPOINT [ "./entrypoint.sh" ]