mirror of
https://github.com/minetest/minetest.git
synced 2024-11-24 00:23:46 +01:00
Skip Android deps download if they already exist
It's close to impossible to test locally built changes otherwise.
This commit is contained in:
parent
ab2419db24
commit
5715434d5e
@ -43,8 +43,13 @@ android {
|
||||
}
|
||||
|
||||
// get precompiled deps
|
||||
task downloadDeps(type: Download) {
|
||||
def depsDir = new File(buildDir.parent, 'deps')
|
||||
if (new File(depsDir, 'armeabi-v7a').exists()) {
|
||||
task getDeps {
|
||||
doLast { logger.lifecycle('Using existing deps from {}', depsDir) }
|
||||
}
|
||||
} else {
|
||||
task downloadDeps(type: Download) {
|
||||
def depsZip = new File(buildDir, 'deps.zip')
|
||||
|
||||
src 'https://github.com/minetest/minetest_android_deps/releases/download/latest/deps.zip'
|
||||
@ -58,6 +63,7 @@ task downloadDeps(type: Download) {
|
||||
doFirst { logger.lifecycle('Extracting to {}', depsDir) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
preBuild.dependsOn getDeps
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user