-
Notifications
You must be signed in to change notification settings - Fork 3
28 lines (28 loc) · 1 KB
/
build.yaml
File metadata and controls
28 lines (28 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Build
on: workflow_dispatch
jobs:
build-arm64:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install prerequisites
run: pip3 install objection
- name: Download APK tool
run: curl https://github.com/iBotPeaches/Apktool/releases/download/v2.9.3/apktool_2.9.3.jar -o apktool.jar -L
- name: Get version
id: version
uses: ExternalAddress4401/get-version@v1.1
- name: Download APK
uses: ExternalAddress4401/download-apk-action@v1.1
with:
version: ${{ steps.version.outputs.version }}
data-url: ${{ steps.version.outputs.data-url }}
- name: Extract APK
run: java -jar apktool.jar d beatstar.apk --only-main-classes
- name: Modify APK
uses: ExternalAddress4401/edit-apk-action@v1.1
- name: Build APK
run: java -jar apktool.jar b beatstar
- name: Move APK
run: rm beatstar.apk && mv beatstar/dist/beatstar.apk ../../../