diff --git a/.github/workflows/magisk.yml b/.github/workflows/magisk.yml index 2055436..4dea50f 100644 --- a/.github/workflows/magisk.yml +++ b/.github/workflows/magisk.yml @@ -1,22 +1,21 @@ name: Magisk - on: push: pull_request: workflow_dispatch: inputs: magisk_apk: - description: 'Download link to magisk apk.' + description: "Download link to magisk apk." required: true - default: 'https://raw.githubusercontent.com/topjohnwu/magisk-files/canary/app-debug.apk' + default: "https://raw.githubusercontent.com/topjohnwu/magisk-files/canary/app-debug.apk" gapps_variant: - description: 'Variants of gapps. Should be: [none, aroma, super, stock, full, mini, micro, nano, pico, tvstock, tvmini]' + description: "Variants of gapps. Should be: [none, aroma, super, stock, full, mini, micro, nano, pico, tvstock, tvmini]" required: true - default: 'none' + default: "none" root_sol: - description: 'Root soluction. Should be: [magisk, none]' + description: "Root soluction. Should be: [magisk, none]" required: true - default: 'magisk' + default: "magisk" jobs: build: @@ -355,10 +354,19 @@ jobs: resize2fs -M ${{ matrix.arch }}/product.img e2fsck -yf ${{ matrix.arch }}/system_ext.img resize2fs -M ${{ matrix.arch }}/system_ext.img + - name: add ADB + run: | + wget https://dl.google.com/android/repository/platform-tools-latest-windows.zip -Oadb.zip + unzip adb.zip platform-tools/?db* + cp platform-tools/?db* ${{ matrix.arch }}/. + rm -r platform-tools + rm adb.zip - name: Remove signature and add scripts run: | rm -rf ${{ matrix.arch }}/\[Content_Types\].xml ${{ matrix.arch }}/AppxBlockMap.xml ${{ matrix.arch }}/AppxSignature.p7x ${{ matrix.arch }}/AppxMetadata tee ${{ matrix.arch }}/Install.ps1 <