You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
write empty machikado if no key available
This commit is contained in:
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -29,6 +29,14 @@ jobs:
|
|||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Write key
|
||||||
|
if: ${{ ( github.event_name != 'pull_request' && github.ref == 'refs/heads/master' ) || github.ref_type == 'tag' }}
|
||||||
|
run: |
|
||||||
|
if [ ! -z "${{ secrets.PRIVATE_KEY }}" ]; then
|
||||||
|
echo '${{ secrets.PUBLIC_KEY }}' | base64 --decode > module/public_key
|
||||||
|
echo '${{ secrets.PRIVATE_KEY }}' | base64 --decode > module/private_key
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -84,6 +84,8 @@ androidComponents.onVariants { variant ->
|
|||||||
from("${project(":loader").buildDir}/intermediates/stripped_native_libs/$variantLowered/out/lib")
|
from("${project(":loader").buildDir}/intermediates/stripped_native_libs/$variantLowered/out/lib")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val root = moduleDir.get()
|
||||||
|
|
||||||
doLast {
|
doLast {
|
||||||
if (file("private_key").exists()) {
|
if (file("private_key").exists()) {
|
||||||
println("=== machikado intergity signing ===")
|
println("=== machikado intergity signing ===")
|
||||||
@@ -114,7 +116,6 @@ androidComponents.onVariants { variant ->
|
|||||||
println("getSign for $name $abi32 $abi64")
|
println("getSign for $name $abi32 $abi64")
|
||||||
val set =
|
val set =
|
||||||
TreeSet<Pair<File, File?>> { o1, o2 -> o1.first.path.replace("\\", "/").compareTo(o2.first.path.replace("\\", "/")) }
|
TreeSet<Pair<File, File?>> { o1, o2 -> o1.first.path.replace("\\", "/").compareTo(o2.first.path.replace("\\", "/")) }
|
||||||
val root = moduleDir.get()
|
|
||||||
set.add(Pair(root.file("module.prop").asFile, null))
|
set.add(Pair(root.file("module.prop").asFile, null))
|
||||||
set.add(Pair(root.file("sepolicy.rule").asFile, null))
|
set.add(Pair(root.file("sepolicy.rule").asFile, null))
|
||||||
set.add(Pair(root.file("post-fs-data.sh").asFile, null))
|
set.add(Pair(root.file("post-fs-data.sh").asFile, null))
|
||||||
@@ -171,6 +172,9 @@ androidComponents.onVariants { variant ->
|
|||||||
|
|
||||||
getSign("machikado.arm", "armeabi-v7a", "arm64-v8a")
|
getSign("machikado.arm", "armeabi-v7a", "arm64-v8a")
|
||||||
getSign("machikado.x86", "x86", "x86_64")
|
getSign("machikado.x86", "x86", "x86_64")
|
||||||
|
} else {
|
||||||
|
root.file("machikado.arm").asFile.createNewFile()
|
||||||
|
root.file("machikado.x86").asFile.createNewFile()
|
||||||
}
|
}
|
||||||
|
|
||||||
fileTree(moduleDir).visit {
|
fileTree(moduleDir).visit {
|
||||||
|
|||||||
Reference in New Issue
Block a user