mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-11-10 21:55:11 +01:00
feat: add pico variant
This commit is contained in:
parent
aecebe7f78
commit
063008bd0e
25
.github/workflows/magisk.yml
vendored
25
.github/workflows/magisk.yml
vendored
@ -230,11 +230,10 @@ jobs:
|
||||
extract_as(zip, f"assets/boot_patch.sh", "boot_patch.sh", "magisk")
|
||||
extract_as(zip, f"assets/util_functions.sh", "util_functions.sh", "magisk")
|
||||
- name: Download OpenGApps
|
||||
if: ${{ github.event.inputs.gapps_variant != 'none' && github.event.inputs.gapps_variant != '' && github.event.inputs.gapps_version != '12.1' }}
|
||||
if: ${{ github.event.inputs.gapps_variant != 'none' && github.event.inputs.gapps_variant != '' }}
|
||||
shell: python
|
||||
run: |
|
||||
import requests
|
||||
import zipfile
|
||||
import os
|
||||
import urllib.request
|
||||
import json
|
||||
@ -244,6 +243,11 @@ jobs:
|
||||
variant = "${{ github.event.inputs.gapps_variant }}"
|
||||
abi_map = {"x64" : "x86_64", "arm64": "arm64"}
|
||||
release = "${{ github.event.inputs.gapps_version }}"
|
||||
if release == "12.1" and arch == "x64" and variant == "pico":
|
||||
link = "http://peternjeim.ddns.net:8081/ipfs/Qmbh8NKAtiaYSgXHj7GTXMcU2AqxCp3jof31Gneffr8XNi"
|
||||
elif release == "12.1" and arch == "x64" and variant == "full":
|
||||
link = "http://peternjeim.ddns.net:8081/ipfs/QmcWnPtdKR3pnmmkwcNhFwXbQtjuJfvK9irk2jurdC8K63"
|
||||
else:
|
||||
try:
|
||||
res = requests.get(f"https://api.opengapps.org/list")
|
||||
j = json.loads(res.content)
|
||||
@ -261,23 +265,6 @@ jobs:
|
||||
urllib.request.urlretrieve(link, out_file)
|
||||
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 = "http://peternjeim.ddns.net:8081/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
|
||||
if: ${{ github.event.inputs.gapps_variant != 'none' && github.event.inputs.gapps_variant != '' }}
|
||||
run: |
|
||||
|
Loading…
Reference in New Issue
Block a user