diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 61c5fee..da2ae5d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,9 +5,8 @@ on: - cron: '0 5 * * 1' push: branches: [ "main" ] - # Publish semver tags as releases. paths: - - 'scripts.sh' + - 'setup.sh' - 'Dockerfile' - '.github/workflows/build.yml' diff --git a/Dockerfile b/Dockerfile index 2a2ed1c..57715e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,13 +8,14 @@ RUN pacman -Syu --noconfirm \ git \ python \ python-pip \ + jre-openjdk \ jadx \ unzip RUN python -m venv /data/.venv && \ . /data/.venv/bin/activate && \ pip install --upgrade git+https://github.com/P1sec/hermes-dec -ENV PATH=/data/.venv/bin:$PATH +ENV PATH=/usr/lib/jvm/default/bin:/data/.venv/bin:$PATH COPY --from=build /root/.cargo/bin/* /usr/local/bin/ COPY setup.sh /data/setup.sh CMD [ "/data/setup.sh" ] \ No newline at end of file diff --git a/script.sh b/script.sh index 7c51110..2eadd64 100755 --- a/script.sh +++ b/script.sh @@ -1,5 +1,10 @@ #!/bin/bash +# debug +echo "start debug" +which java +echo "end debug" + set -e APPS="com.valvesoftware.android.steam.community com.valvesoftware.android.steam.friendsui com.valvesoftware.steamlink" @@ -26,8 +31,9 @@ ProcessApp() if [ -f $1/$1.xapk ]; then unzip -o $1/$1.xapk -d $1 fi - echo "Unzipping $1.apk" + echo "Decompiling $1.apk" jadx --deobf --show-bad-code -d $1 $1/$1.apk + echo "End Decompiling $1.apk" find $1 -type f -exec md5sum {} >> $1/$1.apk.jadx.txt \; for FILE in $1/*.apk do