mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-22 07:57:39 +00:00
Move copy util_functions.sh from Python scripts to gradle
This commit is contained in:
parent
ef3f188a2c
commit
f7abc03dac
@ -69,6 +69,13 @@ androidExtensions {
|
|||||||
isExperimental = true
|
isExperimental = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val copyUtils = tasks.register("copyUtils", Copy::class) {
|
||||||
|
from(rootProject.file("scripts/util_functions.sh"))
|
||||||
|
into("src/main/res/raw")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks["preBuild"]?.dependsOn(copyUtils)
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
|
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
|
||||||
implementation(project(":app:shared"))
|
implementation(project(":app:shared"))
|
||||||
|
4
build.py
4
build.py
@ -350,10 +350,6 @@ def build_apk(args, module):
|
|||||||
|
|
||||||
def build_app(args):
|
def build_app(args):
|
||||||
header('* Building Magisk Manager')
|
header('* Building Magisk Manager')
|
||||||
source = op.join('scripts', 'util_functions.sh')
|
|
||||||
target = op.join('app', 'src', 'main',
|
|
||||||
'res', 'raw', 'util_functions.sh')
|
|
||||||
cp(source, target)
|
|
||||||
build_apk(args, 'app')
|
build_apk(args, 'app')
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user