mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +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
|
||||
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