This repository was archived by the owner on May 6, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +61
-0
lines changed
Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Magisk Manager APK Patcher
2+ on :
3+ workflow_dispatch :
4+ inputs :
5+ version :
6+ description : ' Magisk Manager Version'
7+ required : true
8+ default : ' v7.5.0'
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v2
14+
15+ - uses : actions/setup-java@v1
16+ with :
17+ java-version : ' 14'
18+ architecture : x64
19+
20+ - name : Setup Environment
21+ id : setup_environment
22+ run : |
23+ wget https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool
24+ wget -O apktool.jar https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.4.1.jar
25+ chmod +x apktool
26+
27+ - name : Setup mmpatch
28+ id : setup_mmpatch
29+ run : |
30+ git clone https://github.com/tytydraco/mmpatch
31+
32+ - name : Fetch APK
33+ id : fetch_apk
34+ run : |
35+ wget -O ./mmpatch/MagiskManager.apk https://github.com/topjohnwu/Magisk/releases/download/manager-v7.5.0/MagiskManager-${{ github.event.inputs.version }}.apk
36+
37+ - name : Patch APK
38+ id : patch_apk
39+ run : |
40+ export PATH="$PATH:`pwd`"
41+ cd mmpatch
42+ ./mmpatch Magisk-Modules-Alt-Repo
43+ - name : Create Release
44+ id : create_release
45+ uses : actions/create-release@v1
46+ env :
47+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48+ with :
49+ tag_name : manager-alt-${{ github.event.inputs.version }}
50+ release_name : Magisk Manager (Alt Patched) ${{ github.event.inputs.version }}
51+
52+ - name : Upload Release Asset
53+ id : upload-release-asset
54+ uses : actions/upload-release-asset@v1
55+ env :
56+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
57+ with :
58+ upload_url : ${{ steps.create_release.outputs.upload_url }}
59+ asset_path : ./mmpatch/mmpatch-signed.apk
60+ asset_name : MagiskManager-Alt-Repo-${{ github.event.inputs.version }}.apk
61+ asset_content_type : application/apk
You can’t perform that action at this time.
0 commit comments