From 222415a1262c2ca24000bb225f7714a2b87aea97 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Sun, 31 Oct 2021 16:37:54 +0800 Subject: [PATCH] Add Install.ps1 Close #30 --- .github/workflows/magisk.yml | 24 ++++++++++++++++++++++-- README.md | 4 ++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/.github/workflows/magisk.yml b/.github/workflows/magisk.yml index 4634ebb..687bba6 100644 --- a/.github/workflows/magisk.yml +++ b/.github/workflows/magisk.yml @@ -129,7 +129,7 @@ jobs: if: ${{ github.event.inputs.gapps_variant != 'none' && github.event.inputs.gapps_variant != '' }} run: | mkdir gapps - unzip -p gapps.zip {Core,GApps}/'*.lz' | tar --lzip -C gapps -xvf - -i --strip-components=2 --exclude='setupwizardtablet-x86_64' --exclude='packageinstallergoogle-all' --exclude='speech-common' --exclude='markup-lib-arm' --exclude='markup-all' + unzip -p gapps.zip {Core,GApps}/'*.lz' | tar --lzip -C gapps -xvf - -i --strip-components=2 --exclude='setupwizardtablet-x86_64' --exclude='packageinstallergoogle-all' --exclude='speech-common' --exclude='markup-lib-arm' --exclude='markup-lib-arm64' --exclude='markup-all' e2fsck -yf ${{ matrix.arch }}/system.img resize2fs ${{ matrix.arch }}/system.img $(( $(du -sB512 gapps | cut -f1) + $(du -sB512 ${{ matrix.arch }}/system.img | cut -f1) ))s @@ -326,9 +326,29 @@ jobs: resize2fs -M ${{ matrix.arch }}/product.img e2fsck -yf ${{ matrix.arch }}/system_ext.img resize2fs -M ${{ matrix.arch }}/system_ext.img - - name: Remove signature + - 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 Install.ps1 <