add docker build env #1
+18
@@ -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"]
|
||||||
@@ -57,3 +57,11 @@ Decompile the same APK to `./out_orig/` and do you chancges in `./out/`
|
|||||||
sh generate_patch_diff.sh
|
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`.
|
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`
|
||||||
+10
@@ -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
|
||||||
Reference in New Issue
Block a user