mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13: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
d88f0866b7
commit
58bf4f04b1
@ -43,8 +43,13 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// get precompiled deps
|
// get precompiled deps
|
||||||
task downloadDeps(type: Download) {
|
|
||||||
def depsDir = new File(buildDir.parent, 'deps')
|
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')
|
def depsZip = new File(buildDir, 'deps.zip')
|
||||||
|
|
||||||
src 'https://github.com/minetest/minetest_android_deps/releases/download/latest/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) }
|
doFirst { logger.lifecycle('Extracting to {}', depsDir) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
preBuild.dependsOn getDeps
|
preBuild.dependsOn getDeps
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user