From 88f47d357be43a86e481fed75733914954e01d44 Mon Sep 17 00:00:00 2001 From: Vilius Sutkus '89 Date: Wed, 3 Jan 2024 02:02:20 +0200 Subject: [PATCH] [wvWare] deliver assets --- wvWare/build.gradle.kts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/wvWare/build.gradle.kts b/wvWare/build.gradle.kts index 7838251..7033851 100644 --- a/wvWare/build.gradle.kts +++ b/wvWare/build.gradle.kts @@ -6,7 +6,7 @@ import org.gradle.jvm.tasks.Jar val portVersion = "1.2.9" group = rootProject.group -version = "${portVersion}-beta-1" +version = "${portVersion}-beta-2" plugins { id("maven-publish") @@ -113,6 +113,17 @@ val buildTask = tasks.register("buildPort") { pc.replace("Requires:", "Requires: libpng16") } } + + val dst = layout.buildDirectory.asFile.get().resolve("assets/wv/share/wv").apply { mkdirs() } + installDirectoryFor(com.android.ndkports.Abi.Arm).resolve("share/wv").copyRecursively(dst) { file, exception -> + if (exception !is FileAlreadyExistsException) { + throw exception + } + if (!file.readBytes().contentEquals(exception.file.readBytes())) { + throw exception + } + OnErrorAction.SKIP + } } }