From 11922d71990f3c1df2b745c3d0f643d41344cacd Mon Sep 17 00:00:00 2001 From: DasMoorhuhn Date: Tue, 7 Jul 2026 22:26:21 +0200 Subject: [PATCH] add docker build env --- Dockerfile | 18 ++++++++++++++++++ README.md | 8 ++++++++ compose.yml | 10 ++++++++++ apply_patch.sh => src/apply_patch.sh | 0 .../bejeweled_classic_3.8.1.apk | Bin changes.patch => src/changes.patch | 0 .../generate_patch_diff.sh | 0 .../recompile_and_install.sh | 0 .../recompile_and_sign.sh | 0 9 files changed, 36 insertions(+) create mode 100644 Dockerfile create mode 100644 compose.yml rename apply_patch.sh => src/apply_patch.sh (100%) rename bejeweled_classic_3.8.1.apk => src/bejeweled_classic_3.8.1.apk (100%) rename changes.patch => src/changes.patch (100%) rename generate_patch_diff.sh => src/generate_patch_diff.sh (100%) rename recompile_and_install.sh => src/recompile_and_install.sh (100%) rename recompile_and_sign.sh => src/recompile_and_sign.sh (100%) diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ea43e28 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM alpine + +RUN apk add --no-cache \ + openjdk17-jre \ + wget \ + bash \ + patch + +RUN wget -O /usr/local/bin/apktool \ + https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool && \ + wget -O /usr/local/bin/apktool.jar \ + https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_3.0.2.jar && \ + chmod +x /usr/local/bin/apktool.jar && \ + chmod +x /usr/local/bin/apktool + +WORKDIR /data + +CMD ["tail", "-f", "/dev/null"] \ No newline at end of file diff --git a/README.md b/README.md index 6f358a6..6abb4ed 100644 --- a/README.md +++ b/README.md @@ -57,3 +57,11 @@ Decompile the same APK to `./out_orig/` and do you chancges in `./out/` sh generate_patch_diff.sh ``` You may want to add a different app version like `android:versionCode='18101' android:versionName='3.8.1_2026.7.7'` to the `AndroidManifest.xml` file, otherwise the version which will be displayed in app info will be `3.8.1`. + +## Docker + +The docker image contains all needed tools to decompile/compile an APK. + +- Build the image: `docker compose build` +- Run the container: `docker compose up -d` +- Enter the container: `docker compose exec bejeweled-env bash` \ No newline at end of file diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..51ebedf --- /dev/null +++ b/compose.yml @@ -0,0 +1,10 @@ +services: + bejeweled-env: + container_name: bejeweled_env + image: bejeweled-env:1.0 + stop_grace_period: "1s" + build: + context: . + dockerfile: Dockerfile + volumes: + - ./src:/data:rw \ No newline at end of file diff --git a/apply_patch.sh b/src/apply_patch.sh similarity index 100% rename from apply_patch.sh rename to src/apply_patch.sh diff --git a/bejeweled_classic_3.8.1.apk b/src/bejeweled_classic_3.8.1.apk similarity index 100% rename from bejeweled_classic_3.8.1.apk rename to src/bejeweled_classic_3.8.1.apk diff --git a/changes.patch b/src/changes.patch similarity index 100% rename from changes.patch rename to src/changes.patch diff --git a/generate_patch_diff.sh b/src/generate_patch_diff.sh similarity index 100% rename from generate_patch_diff.sh rename to src/generate_patch_diff.sh diff --git a/recompile_and_install.sh b/src/recompile_and_install.sh similarity index 100% rename from recompile_and_install.sh rename to src/recompile_and_install.sh diff --git a/recompile_and_sign.sh b/src/recompile_and_sign.sh similarity index 100% rename from recompile_and_sign.sh rename to src/recompile_and_sign.sh -- 2.54.0