Skip to content

Commit

Permalink
[wvWare] deliver assets
Browse files Browse the repository at this point in the history
  • Loading branch information
ViliusSutkus89 committed Jan 3, 2024
1 parent 407691a commit 88f47d3
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion wvWare/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -113,6 +113,17 @@ val buildTask = tasks.register<AutoconfPortTask>("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
}
}
}

Expand Down

0 comments on commit 88f47d3

Please sign in to comment.