mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-11-13 07:05:10 +01:00
feat: support Android 12.1 GApps
This commit is contained in:
parent
41d53dd299
commit
274dcab284
24
.github/workflows/magisk.yml
vendored
24
.github/workflows/magisk.yml
vendored
@ -49,7 +49,7 @@ on:
|
|||||||
gapps_version:
|
gapps_version:
|
||||||
description: "Android version of GApps"
|
description: "Android version of GApps"
|
||||||
required: true
|
required: true
|
||||||
default: "11.0"
|
default: "12.1"
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
- 11.0
|
- 11.0
|
||||||
@ -230,7 +230,7 @@ jobs:
|
|||||||
extract_as(zip, f"assets/boot_patch.sh", "boot_patch.sh", "magisk")
|
extract_as(zip, f"assets/boot_patch.sh", "boot_patch.sh", "magisk")
|
||||||
extract_as(zip, f"assets/util_functions.sh", "util_functions.sh", "magisk")
|
extract_as(zip, f"assets/util_functions.sh", "util_functions.sh", "magisk")
|
||||||
- name: Download OpenGApps
|
- name: Download OpenGApps
|
||||||
if: ${{ github.event.inputs.gapps_variant != 'none' && github.event.inputs.gapps_variant != '' }}
|
if: ${{ github.event.inputs.gapps_variant != 'none' && github.event.inputs.gapps_variant != '' && github.event.inputs.gapps_version != '12.1' }}
|
||||||
shell: python
|
shell: python
|
||||||
run: |
|
run: |
|
||||||
import requests
|
import requests
|
||||||
@ -243,9 +243,6 @@ jobs:
|
|||||||
arch = "${{ matrix.arch }}"
|
arch = "${{ matrix.arch }}"
|
||||||
variant = "${{ github.event.inputs.gapps_variant }}"
|
variant = "${{ github.event.inputs.gapps_variant }}"
|
||||||
abi_map = {"x64" : "x86_64", "arm64": "arm64"}
|
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
|
|
||||||
# download the corresponding version
|
|
||||||
release = "${{ github.event.inputs.gapps_version }}"
|
release = "${{ github.event.inputs.gapps_version }}"
|
||||||
try:
|
try:
|
||||||
res = requests.get(f"https://api.opengapps.org/list")
|
res = requests.get(f"https://api.opengapps.org/list")
|
||||||
@ -264,6 +261,23 @@ jobs:
|
|||||||
urllib.request.urlretrieve(link, out_file)
|
urllib.request.urlretrieve(link, out_file)
|
||||||
print("done", flush=True)
|
print("done", flush=True)
|
||||||
|
|
||||||
|
- name: Download OpenGApps
|
||||||
|
if: ${{ matrix.arch == 'x64' && github.event.inputs.gapps_variant == 'full' && github.event.inputs.gapps_version == '12.1' }}
|
||||||
|
shell: python
|
||||||
|
run: |
|
||||||
|
import os
|
||||||
|
import urllib.request
|
||||||
|
|
||||||
|
link = "https://ipfs.infura.io/ipfs/Qmbh8NKAtiaYSgXHj7GTXMcU2AqxCp3jof31Gneffr8XNi"
|
||||||
|
|
||||||
|
print(f"downloading link: {link}", flush=True)
|
||||||
|
|
||||||
|
out_file = "gapps.zip"
|
||||||
|
|
||||||
|
if not os.path.isfile(out_file):
|
||||||
|
urllib.request.urlretrieve(link, out_file)
|
||||||
|
print("done", flush=True)
|
||||||
|
|
||||||
- name: Extract GApps and expand images
|
- name: Extract GApps and expand images
|
||||||
if: ${{ github.event.inputs.gapps_variant != 'none' && github.event.inputs.gapps_variant != '' }}
|
if: ${{ github.event.inputs.gapps_variant != 'none' && github.event.inputs.gapps_variant != '' }}
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user