diff --git a/.gitignore b/.gitignore index 3c0160d..ae2945a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ build/ out/ +options.private.json diff --git a/Dockerfile b/Dockerfile index 530e17e..045bca1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM ubuntu -RUN apt-get update && apt-get install -y gettext-base git jq openjdk-17-jdk zip wget +RUN apt-get update && apt-get install -y git jq openjdk-17-jdk zip wget RUN git clone --recurse https://github.com/revanced-apks/build-apps.git /app WORKDIR /app @@ -9,10 +9,6 @@ COPY options.json options.json RUN sed -i 's/--keystore=ks\.keystore/--keystore=ks\.keystore --options=options.json/' utils.sh RUN sed -i 's/$(nproc)/2/g' build.sh -RUN sed -i 's/patch_apk() {/patch_apk() {\n envsubst < options.json > options.json.tmp\n mv options.json.tmp options.json/' utils.sh - -ENV GITHUB_TOKEN= -ENV REDDIT_OAUTH_CLIENT_ID= RUN groupadd -g 1000 revanced RUN useradd -u 1000 -g revanced revanced diff --git a/README.md b/README.md index 3b3779a..57864ff 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ A Docker container that will help you build Revanced apps. Based on [revanced-apks/build-apps](https://github.com/revanced-apks/build-apps). ```shell +docker build . -t registry.karaolidis.com/nikas36/revanced-builder:latest docker run -v $(pwd)/build:/app/build -e GITHUB_TOKEN=YOUR_GITHUB_TOKEN registry.karaolidis.com/nikas36/revanced-builder:latest ``` @@ -11,7 +12,6 @@ docker run -v $(pwd)/build:/app/build -e GITHUB_TOKEN=YOUR_GITHUB_TOKEN registry | Environment Variable | Description | | ------------------------ | ---------------------------------------------------------- | | `GITHUB_TOKEN` | Github token to use for downloading patches. | -| `REDDIT_OAUTH_CLIENT_ID` | Reddit OAuth Client ID for "change-oauth-client-id" patch. | ## Volumes diff --git a/options.json b/options.json index 891ce9b..fe51488 100644 --- a/options.json +++ b/options.json @@ -1,11 +1 @@ -[ - { - "patchName": "change-oauth-client-id", - "options": [ - { - "key": "client-id", - "value": "$REDDIT_OAUTH_CLIENT_ID" - } - ] - } -] +[]