Nicholas Doglio
08/17/2023, 6:04 PMcompose.desktop.common
. I have an IntellIJ plugin I just wrote using Compose for Desktop and after publishing it using the common
dependency I get a crash when trying to open it with the following error org.jetbrains.skiko.LibraryLoadException: Cannot find libskiko-macos-arm64.dylib.sha256, proper native dependency missing.
Unsure if I hallucinated those guidelines or if I'm doing something else wrong 🙃Olivier Patry
08/17/2023, 6:19 PMcompose.desktop.currentOs
Nicholas Doglio
08/17/2023, 6:24 PMOlivier Patry
08/17/2023, 6:46 PMimport org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
kotlin("jvm")
id("org.jetbrains.compose")
}
dependencies {
...
implementation(compose.desktop.currentOs)
...
}
compose.desktop {
application {
mainClass = "..."
nativeDistributions {
packageVersion = "..."
packageName = "..."
version = "..."
description = "..."
copyright = "..."
vendor = ".."
targetFormats(
TargetFormat.Dmg,
TargetFormat.Msi,
TargetFormat.Deb
)
modules(
// for org.apache.logging.log4j.core.LoggerContext
"java.management",
// for DriverManager (required by SQLite JDBC driver)
"java.sql",
// for Gson (sun.misc.Unsafe requirement)
"jdk.unsupported"
)
buildTypes.release {
proguard {
configurationFiles.from("<http://___.pro|___.pro>")
}
}
macOS {
iconFile.set(project.file("icon.icns"))
bundleID = "..."
}
windows {
iconFile.set(project.file("icon.ico"))
menuGroup = "..."
shortcut = true
// see <https://wixtoolset.org/documentation/manual/v3/howtos/general/generate_guids.html>
upgradeUuid = "B5D7325D-79FC-4814-A24E-2C0E9E09A472"
}
linux {
iconFile.set(project.file("icon.png"))
}
}
}
}
Olivier Patry
08/17/2023, 6:50 PM./gradlew myapp:packageReleaseDistributionForCurrentOS
(or individually each myapp:packageReleaseDeb
, myapp:packageReleaseDmg
, myapp:packageReleaseMsi
depending on the target OS, can't remember, I do not have my CI job in front of my eyes)Nicholas Doglio
08/21/2023, 3:45 PMOlivier Patry
08/21/2023, 4:27 PMpackageReleaseDistributionForCurrentOS