mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-10 00:15:57 +01:00
skip validation layers download if file exists
This commit is contained in:
parent
970266a3ad
commit
75d07e8b4b
@ -41,21 +41,23 @@ abstract class FetchVkValidationLayersTask : DefaultTask() {
|
||||
return
|
||||
}
|
||||
|
||||
val zipUrl =
|
||||
"https://github.com/KhronosGroup/Vulkan-ValidationLayers/releases/download/$tag/android-binaries-$version.zip"
|
||||
val zipFile = cachedZip.get().asFile
|
||||
if (!zipFile.exists()) {
|
||||
val zipUrl =
|
||||
"https://github.com/KhronosGroup/Vulkan-ValidationLayers/releases/download/$tag/android-binaries-$version.zip"
|
||||
|
||||
zipFile.parentFile.mkdirs()
|
||||
println("Downloading Vulkan validation layers...")
|
||||
zipFile.parentFile.mkdirs()
|
||||
println("Downloading Vulkan validation layers...")
|
||||
|
||||
URI(zipUrl)
|
||||
.toURL()
|
||||
.openStream()
|
||||
.use { input ->
|
||||
zipFile.outputStream().use { output ->
|
||||
input.copyTo(output)
|
||||
URI(zipUrl)
|
||||
.toURL()
|
||||
.openStream()
|
||||
.use { input ->
|
||||
zipFile.outputStream().use { output ->
|
||||
input.copyTo(output)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
val outDir = outputDir.get().asFile
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user