mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2025-02-04 13:56:22 +01:00
Merge branch 'LSPosed:main' into master
This commit is contained in:
commit
c9a0425846
85
.github/workflows/magisk.yml
vendored
85
.github/workflows/magisk.yml
vendored
@ -1,28 +1,87 @@
|
|||||||
name: Build WSA
|
name: Build WSA
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
paths-ignore:
|
||||||
|
- 'README.md'
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- 'README.md'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
magisk_apk:
|
arch:
|
||||||
description: "Download link to magisk apk."
|
description: "Build arch"
|
||||||
required: true
|
required: true
|
||||||
default: "https://cdn.jsdelivr.net/gh/topjohnwu/magisk-files@24.1/app-release.apk"
|
default: "x64 & arm64"
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- x64
|
||||||
|
- arm64
|
||||||
|
- x64 & arm64
|
||||||
|
magisk_apk:
|
||||||
|
description: "Magisk version"
|
||||||
|
required: true
|
||||||
|
default: "stable"
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- stable
|
||||||
|
- beta
|
||||||
|
- canary
|
||||||
gapps_variant:
|
gapps_variant:
|
||||||
description: "Variants of gapps. Should be: [none, super, stock, full, mini, micro, nano, pico, tvstock, tvmini]"
|
description: "Variants of gapps"
|
||||||
required: true
|
required: true
|
||||||
default: "none"
|
default: "none"
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- none
|
||||||
|
- super
|
||||||
|
- stock
|
||||||
|
- full
|
||||||
|
- mini
|
||||||
|
- micro
|
||||||
|
- nano
|
||||||
|
- pico
|
||||||
|
- tvstock
|
||||||
|
- tvmini
|
||||||
root_sol:
|
root_sol:
|
||||||
description: "Root solution. Should be: [magisk, none]"
|
description: "Root solution"
|
||||||
required: true
|
required: true
|
||||||
default: "magisk"
|
default: "magisk"
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- magisk
|
||||||
|
- none
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
matrix:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
||||||
|
steps:
|
||||||
|
- name: Generate build matrix
|
||||||
|
id: set-matrix
|
||||||
|
uses: actions/github-script@v6
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
let matrix = {};
|
||||||
|
let arch = "${{ github.event.inputs.arch }}"
|
||||||
|
switch ( arch ) {
|
||||||
|
case "x64":
|
||||||
|
matrix.arch = ["x64"];
|
||||||
|
break;
|
||||||
|
case "arm64":
|
||||||
|
matrix.arch = ["arm64"];
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
matrix.arch = ["x64", "arm64"];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
core.setOutput("matrix",JSON.stringify(matrix));
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
needs: matrix
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix: ${{fromJson(needs.matrix.outputs.matrix)}}
|
||||||
arch: [x64, arm64]
|
|
||||||
steps:
|
steps:
|
||||||
- name: Dependencies
|
- name: Dependencies
|
||||||
run: |
|
run: |
|
||||||
@ -109,11 +168,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"
|
||||||
|
|
||||||
@ -437,7 +500,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (-not (Test-Administrator)) {
|
if (-not (Test-Administrator)) {
|
||||||
\$proc = Start-Process -PassThru -WindowStyle Hidden -Verb RunAs powershell.exe -Args "-executionpolicy bypass -command Set-Location \`"\$PSScriptRoot\`"; \`"\$PSCommandPath\`" EVAL"
|
\$proc = Start-Process -PassThru -WindowStyle Hidden -Verb RunAs powershell.exe -Args "-executionpolicy bypass -command Set-Location '\$PSScriptRoot'; &'\$PSCommandPath' EVAL"
|
||||||
\$proc.WaitForExit()
|
\$proc.WaitForExit()
|
||||||
if (\$proc.ExitCode -ne 0) {
|
if (\$proc.ExitCode -ne 0) {
|
||||||
Clear-Host
|
Clear-Host
|
||||||
@ -447,7 +510,7 @@ jobs:
|
|||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
elseif ((\$args.Count -eq 1) -and (\$args[0] -eq "EVAL")) {
|
elseif ((\$args.Count -eq 1) -and (\$args[0] -eq "EVAL")) {
|
||||||
Start-Process powershell.exe -Args "-executionpolicy bypass -command Set-Location \`"\$PSScriptRoot\`"; \`"\$PSCommandPath\`""
|
Start-Process powershell.exe -Args "-executionpolicy bypass -command Set-Location '\$PSScriptRoot'; &'\$PSCommandPath'"
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -486,7 +549,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
Clear-Host
|
Clear-Host
|
||||||
Write-Host "Installing MagiskOnWSA..."
|
Write-Host "Installing MagiskOnWSA..."
|
||||||
Stop-Process -Name "wsaclient"
|
Stop-Process -Name "wsaclient" -ErrorAction "silentlycontinue"
|
||||||
Add-AppxPackage -ForceApplicationShutdown -ForceUpdateFromAnyVersion -Register .\AppxManifest.xml
|
Add-AppxPackage -ForceApplicationShutdown -ForceUpdateFromAnyVersion -Register .\AppxManifest.xml
|
||||||
if (\$?) {
|
if (\$?) {
|
||||||
Finish
|
Finish
|
||||||
|
@ -78,13 +78,10 @@ https://user-images.githubusercontent.com/5022927/145696886-e13ebfc1-ff25-4410-8
|
|||||||
Magisk actively remove online module repository. You can install module locally or by `adb push module.zip /data/local/tmp` and `adb shell su -c magisk --install-module /data/local/tmp/module.zip`.
|
Magisk actively remove online module repository. You can install module locally or by `adb push module.zip /data/local/tmp` and `adb shell su -c magisk --install-module /data/local/tmp/module.zip`.
|
||||||
- Can I use Magisk 23.0 stable or lower version?
|
- Can I use Magisk 23.0 stable or lower version?
|
||||||
|
|
||||||
No. Magisk has bugs preventing itself running on WSA. Magisk Canary has fixed them. So try Magisk 23 canary or higher version.
|
No. Magisk has bugs preventing itself running on WSA. Magisk 24+ has fixed them. So you must use Magisk 24 or higher version.
|
||||||
- But Magisk has removed hide since 23 canary?
|
|
||||||
|
|
||||||
Use [Magisk Alpha](https://t.me/magiskalpha) or use Zygisk with [Shamiko](https://t.me/c/1414270883/25744) for hidding. To intergrate Magisk Alpha, use this Magisk apk link https://github.com/vvb2060/magisk_files/raw/alpha/app-release.apk for the Github Action.
|
|
||||||
- How can I get rid of Magisk?
|
- How can I get rid of Magisk?
|
||||||
|
|
||||||
Input `none` as root solution.
|
Choose `none` as root solution.
|
||||||
- Github Action script is updated, how can I synchronize it?
|
- Github Action script is updated, how can I synchronize it?
|
||||||
|
|
||||||
1. In your fork repository, click `fetch upstream`
|
1. In your fork repository, click `fetch upstream`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user