mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 18: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
ab2419db24
commit
5715434d5e
@ -43,19 +43,25 @@ 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()) {
|
||||||
def depsZip = new File(buildDir, 'deps.zip')
|
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'
|
src 'https://github.com/minetest/minetest_android_deps/releases/download/latest/deps.zip'
|
||||||
dest depsZip
|
dest depsZip
|
||||||
overwrite false
|
overwrite false
|
||||||
|
|
||||||
task getDeps(dependsOn: downloadDeps, type: Copy) {
|
task getDeps(dependsOn: downloadDeps, type: Copy) {
|
||||||
depsDir.mkdir()
|
depsDir.mkdir()
|
||||||
from zipTree(depsZip)
|
from zipTree(depsZip)
|
||||||
into depsDir
|
into depsDir
|
||||||
doFirst { logger.lifecycle('Extracting to {}', depsDir) }
|
doFirst { logger.lifecycle('Extracting to {}', depsDir) }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user