Skip to content

Commit

Permalink
Reorder workflow to use generated snapmod jar and clientlib.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodit committed Apr 5, 2022
1 parent 3edbb81 commit 8a8a885
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/apk-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,15 @@ jobs:
distribution: 'adopt'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Generate Debug APK
run: ./gradlew clean assembleDebug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Download Snapchat APK
run: wget -q -O snapchat.apk "$APK_URL"
env:
APK_URL: ${{ secrets.APK_URL }}

- name: Download dexsearch
run: wget -q -O dexsearch.jar "https://github.com/rodit/dexsearch/releases/download/$DEXSEARCH_VERSION/dexsearch-latest.jar"
- name: Download dexsearch and clientlib
run: |
wget -q -O dexsearch.jar "https://github.com/rodit/dexsearch/releases/download/$DEXSEARCH_VERSION/dexsearch-latest.jar"
wget -q -O app/libs/clientlib.jar "https://github.com/rodit/dexsearch/releases/download/$DEXSEARCH_VERSION/clientlib-latest.jar"
env:
DEXSEARCH_VERSION: ${{ secrets.DEXSEARCH_VERSION }}

Expand All @@ -43,8 +37,16 @@ jobs:
wget -q -O android.zip "https://dl.google.com/android/repository/platform-32_r01.zip"
unzip -qq android.zip
- name: Generate Bindings
run: java -jar dexsearch.jar -i snapchat.apk -s snap.ds -o bindings.json -a "android-12/android.jar"
- name: Generate Bindings and snapmod jar
run: java -jar dexsearch.jar -i snapchat.apk -s snap.ds -o bindings.json -j app/libs/snapmod.jar -a "android-12/android.jar" -p xyz.rodit.snapmod.mappings

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Generate Debug APK
run: ./gradlew clean assembleDebug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish Release APK and Bindings
uses: marvinpinto/action-automatic-releases@latest
Expand Down

0 comments on commit 8a8a885

Please sign in to comment.