Don't show gapps options unless it's finished

This commit is contained in:
LoveSy 2021-10-26 21:36:00 +08:00
parent c637f0de6c
commit a3b765c70d

View File

@ -9,10 +9,10 @@ on:
description: 'Download link to magisk apk.' description: 'Download link to magisk apk.'
required: true required: true
default: 'https://raw.githubusercontent.com/LSPosed/MagiskOnWSA/main/magisk.apk' default: 'https://raw.githubusercontent.com/LSPosed/MagiskOnWSA/main/magisk.apk'
gapps_variant: # 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 # required: true
default: 'none' # default: 'none'
jobs: jobs:
build: build:
@ -139,7 +139,9 @@ jobs:
sudo mkdir system sudo mkdir system
sudo mount -o loop ${{ matrix.arch }}/system.img system sudo mount -o loop ${{ matrix.arch }}/system.img system
sudo mount -o loop ${{ matrix.arch }}/vendor.img system/vendor sudo mount -o loop ${{ matrix.arch }}/vendor.img system/vendor
- name: Modify images sudo mount -o loop ${{ matrix.arch }}/product.img system/product
sudo mount -o loop ${{ matrix.arch }}/system_ext.img system/system_ext
- name: Integrate Magisk
run: | run: |
sudo mkdir system/sbin sudo mkdir system/sbin
sudo chcon --reference system/init.environ.rc system/sbin sudo chcon --reference system/init.environ.rc system/sbin
@ -199,6 +201,8 @@ jobs:
- name: Umount images - name: Umount images
run: | run: |
sudo umount system/vendor sudo umount system/vendor
sudo umount system/product
sudo umount system/system_ext
sudo umount system sudo umount system
- name: Shrink images - name: Shrink images
run: | run: |
@ -206,6 +210,10 @@ jobs:
resize2fs ${{ matrix.arch }}/system.img resize2fs ${{ matrix.arch }}/system.img
e2fsck -yf ${{ matrix.arch }}/vendor.img e2fsck -yf ${{ matrix.arch }}/vendor.img
resize2fs ${{ matrix.arch }}/vendor.img resize2fs ${{ matrix.arch }}/vendor.img
e2fsck -yf ${{ matrix.arch }}/product.img
resize2fs ${{ matrix.arch }}/product.img
e2fsck -yf ${{ matrix.arch }}/system_ext.img
resize2fs ${{ matrix.arch }}/system_ext.img
- name: Remove signature - name: Remove signature
run: | run: |
rm -rf ${{ matrix.arch }}/\[Content_Types\].xml ${{ matrix.arch }}/AppxBlockMap.xml ${{ matrix.arch }}/AppxSignature.p7x ${{ matrix.arch }}/AppxMetadata rm -rf ${{ matrix.arch }}/\[Content_Types\].xml ${{ matrix.arch }}/AppxBlockMap.xml ${{ matrix.arch }}/AppxSignature.p7x ${{ matrix.arch }}/AppxMetadata