Browse Source

Fix unpacking skiko on Linux and Windows (#586)

pull/588/head 0.4.0-build182
Alexey Tsvetkov 4 years ago committed by GitHub
parent
commit
e7e5b79597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractJPackageTask.kt

4
gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractJPackageTask.kt

@ -487,8 +487,8 @@ private fun isSkikoForCurrentOS(lib: File): Boolean =
private fun unpackSkikoForCurrentOS(sourceJar: File, skikoDir: File, fileOperations: FileOperations): List<File> {
val entriesToUnpack = when (currentOS) {
OS.MacOS -> setOf("libskiko-macos-${currentArch.id}.dylib")
OS.Linux -> setOf("skiko-windows-${currentArch.id}.dll", "icudtl.dat")
OS.Windows -> setOf("libskiko-linux-${currentArch.id}.so")
OS.Windows -> setOf("skiko-windows-${currentArch.id}.dll", "icudtl.dat")
OS.Linux -> setOf("libskiko-linux-${currentArch.id}.so")
}
// output files: unpacked libs, corresponding .sha256 files, and target jar

Loading…
Cancel
Save