Skip to content

Commit

Permalink
Keep gapps to pico if it's Android 12.1 (LSPosed#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard20181 authored May 24, 2022
1 parent dfcb381 commit a12a3d6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/magisk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,13 @@ jobs:
print(f"unzipping to {zip_name}", flush=True)
zip.extract(f)
ver_no = zip_name.split("_")
ver = ver_no[1]
long_ver = ver_no[1]
ver=long_ver.split(".")
main_ver=ver[1]
with open(os.environ['GITHUB_ENV'], 'a') as g:
g.write(f'WSA_VER={ver}\n')
g.write(f'WSA_VER={long_ver}\n')
with open(os.environ['GITHUB_ENV'], 'a') as g:
g.write(f'WSA_MAIN_VER={main_ver}\n')
rel = ver_no[3].split(".")
rell = str(rel[0])
with open(os.environ['GITHUB_ENV'], 'a') as g:
Expand Down Expand Up @@ -234,7 +238,8 @@ jobs:
import re
arch = "${{ matrix.arch }}"
variant = "${{ github.event.inputs.gapps_variant }}"
# TODO: if it's an Android 12.1 base WSA keep it pico since other variants of opengapps are unable to boot successfully
variant = "${{ github.event.inputs.gapps_variant }}" if int("${{ env.WSA_MAIN_VER }}") < 2204 else "pico"
abi_map = {"x64" : "x86_64", "arm64": "arm64"}
# TODO: keep it 11.0 since opengapps does not support 12+ yet
# As soon as opengapps is available for 12+, we need to get the sdk/release from build.prop and
Expand Down

0 comments on commit a12a3d6

Please sign in to comment.