Skip to content

Commit

Permalink
fix: gradle macos 下替换 jar 包路径问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ptma committed Jan 9, 2024
1 parent 052c8b2 commit b3b6584
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,12 @@ tasks.register<Jar>("repackJavet") {
tasks.register<Copy>("replaceJavet") {
if (taskPlatform == Platform.mac) {
from(layout.buildDirectory.file("libs/javet-macos-${javetVersion}.jar"))
into(layout.buildDirectory.dir("MqttInsight.app/Contents/Resources/Java/libs"))
} else {
from(layout.buildDirectory.file("libs/javet-${javetVersion}.jar"))
into(layout.buildDirectory.dir("MqttInsight/libs"))
}

into(layout.buildDirectory.dir("MqttInsight/libs"))

dependsOn("repackJavet")
}

Expand Down

0 comments on commit b3b6584

Please sign in to comment.