Skip to content

Commit

Permalink
Put resource file check on resource task (#476)
Browse files Browse the repository at this point in the history
Also update now that we have a RISC-V binary.
  • Loading branch information
JakeWharton authored Sep 13, 2024
1 parent b3c1d49 commit 709973a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mosaic-terminal/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ kotlin {
explicitApi()

jvm {
compilations.main.compileTaskProvider.configure {
tasks.named(compilations.main.processResourcesTaskName).configure {
doFirst {
def files = project.fileTree('src/jvmMain/resources').files
if (files.size() != 6) {
if (files.size() != 7) {
throw new RuntimeException(
"Missing native libraries. Run `zig build -p src/jvmMain/resources/jni`. Found: $files",
)
Expand Down

0 comments on commit 709973a

Please sign in to comment.