mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2025-02-18 12:16:21 +01:00
Simplified the selection of the Magisk release (#220)
This commit is contained in:
parent
90f601d4a2
commit
810f902194
10
.github/workflows/magisk.yml
vendored
10
.github/workflows/magisk.yml
vendored
@ -5,9 +5,9 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
magisk_apk:
|
magisk_apk:
|
||||||
description: "Download link to magisk apk."
|
description: "Magisk version. Should be stable, beta, canary or a download link to Magisk apk."
|
||||||
required: true
|
required: true
|
||||||
default: "https://cdn.jsdelivr.net/gh/topjohnwu/magisk-files@24.1/app-release.apk"
|
default: "stable"
|
||||||
gapps_variant:
|
gapps_variant:
|
||||||
description: "Variants of gapps. Should be: [none, super, stock, full, mini, micro, nano, pico, tvstock, tvmini]"
|
description: "Variants of gapps. Should be: [none, super, stock, full, mini, micro, nano, pico, tvstock, tvmini]"
|
||||||
required: true
|
required: true
|
||||||
@ -109,11 +109,15 @@ jobs:
|
|||||||
import urllib.request
|
import urllib.request
|
||||||
import zipfile
|
import zipfile
|
||||||
import os
|
import os
|
||||||
|
import json
|
||||||
|
import requests
|
||||||
|
|
||||||
magisk_apk = """${{ github.event.inputs.magisk_apk }}"""
|
magisk_apk = """${{ github.event.inputs.magisk_apk }}"""
|
||||||
|
|
||||||
if not magisk_apk:
|
if not magisk_apk:
|
||||||
magisk_apk = """https://cdn.jsdelivr.net/gh/topjohnwu/magisk-files@24.1/app-release.apk"""
|
magisk_apk = "stable"
|
||||||
|
if magisk_apk == "stable" or magisk_apk == "beta" or magisk_apk == "canary":
|
||||||
|
magisk_apk = json.loads(requests.get(f"https://github.com/topjohnwu/magisk-files/raw/master/{magisk_apk}.json").content)['magisk']['link']
|
||||||
|
|
||||||
out_file = "magisk.zip"
|
out_file = "magisk.zip"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user