From fc3d1562aa198038e2f37f3de3c4fa9990593414 Mon Sep 17 00:00:00 2001 From: Mioki Date: Fri, 19 Nov 2021 04:58:08 -0800 Subject: [PATCH] Adds latest adb files. Installer now opens WSASettings and Installs Magisk.apk with minimal input from user. (#89) * Supplies the same Magisk APK version with WSA Provides the required Magisk APK along with the rest of the files. * Copy to magisk.apk iff root sol is magisk * Update README.md * Adds latest adb and installs Magisk.apk at the end. * typo error * typo error * fix folder error in adb call from install script * Optimized ADB unzip * Cleanup temp files during adb extraction * Automated adb connection and Magisk Install * Changed Magisk launch command * fix missing ./ in adb call * Cleanup adb.zip * AUtomated install script. No user interaction install. * Fixed ./adb missing ./ * Edited Readme to remove unnecesary user steps. * Prepare script for AppxPackage randomly not starting wsaclient. * Install script now activates Windows 11 developers mode automatically. * stupid space in the middle of a command fixed Co-authored-by: LoveSy --- .github/workflows/magisk.yml | 76 +++++++++++++++++++++++++++++++----- README.md | 6 +-- 2 files changed, 69 insertions(+), 13 deletions(-) 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 <