Included ARM build for linux
This commit is contained in:
parent
abec077f23
commit
5063fcf5d8
1 changed files with 21 additions and 0 deletions
|
@ -29,6 +29,11 @@ dependencies {
|
|||
val jgit = "6.5.0.202303070854-r"
|
||||
|
||||
implementation(compose.desktop.currentOs)
|
||||
when (currentOs()) {
|
||||
OS.LINUX -> implementation(compose.desktop.linux_arm64) // Include arm for linux builds
|
||||
else -> {}
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
|
||||
implementation(compose.desktop.components.splitPane)
|
||||
implementation(compose("org.jetbrains.compose.ui:ui-util"))
|
||||
|
@ -52,6 +57,22 @@ dependencies {
|
|||
|
||||
}
|
||||
|
||||
fun currentOs(): OS {
|
||||
val os = System.getProperty("os.name")
|
||||
return when {
|
||||
os.equals("Mac OS X", ignoreCase = true) -> OS.MAC
|
||||
os.startsWith("Win", ignoreCase = true) -> OS.WINDOWS
|
||||
os.startsWith("Linux", ignoreCase = true) -> OS.LINUX
|
||||
else -> error("Unknown OS name: $os")
|
||||
}
|
||||
}
|
||||
|
||||
enum class OS {
|
||||
LINUX,
|
||||
WINDOWS,
|
||||
MAC
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
useJUnitPlatform()
|
||||
testLogging {
|
||||
|
|
Loading…
Reference in a new issue