mirror of
https://github.com/recloudstream/cloudstream.git
synced 2026-09-12 11:44:30 +00:00
55 lines
No EOL
1.8 KiB
Kotlin
55 lines
No EOL
1.8 KiB
Kotlin
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
|
|
|
plugins {
|
|
alias(libs.plugins.kotlin.multiplatform)
|
|
alias(libs.plugins.compose.multiplatform)
|
|
alias(libs.plugins.compose.compiler)
|
|
}
|
|
|
|
kotlin {
|
|
jvm {}
|
|
sourceSets {
|
|
jvmMain.dependencies {
|
|
implementation(libs.bundles.compose)
|
|
implementation(compose.desktop.currentOs) {
|
|
// compose.desktop.currentOs imports the wrong material 2, so we exclude it
|
|
exclude(group = "org.jetbrains.compose.material", module = "material")
|
|
}
|
|
implementation(project(":shared"))
|
|
}
|
|
}
|
|
}
|
|
|
|
// java.lang.System::load has been called by org.jetbrains.skiko.LibraryLoader in an unnamed module
|
|
tasks.withType<JavaExec> {
|
|
jvmArgs("--enable-native-access=ALL-UNNAMED")
|
|
}
|
|
|
|
compose.desktop {
|
|
application {
|
|
mainClass = "com.lagradost.cloudstream4.MainKt"
|
|
nativeDistributions {
|
|
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
|
|
packageName = "CloudStream"
|
|
packageVersion = "1.0.0"
|
|
|
|
val iconsRoot = project.file("desktop-icons")
|
|
macOS {
|
|
// iconFile.set(iconsRoot.resolve("icon-mac.icns"))
|
|
}
|
|
windows {
|
|
iconFile.set(iconsRoot.resolve("icon-windows.ico"))
|
|
// menuGroup = "Compose Examples"
|
|
// see https://wixtoolset.org/documentation/manual/v3/howtos/general/generate_guids.html
|
|
// upgradeUuid = ""
|
|
}
|
|
linux {
|
|
iconFile.set(iconsRoot.resolve("icon-linux.png"))
|
|
}
|
|
}
|
|
|
|
//buildTypes.release.proguard {
|
|
// configurationFiles.from(project.file("rules.pro"))
|
|
//}
|
|
}
|
|
} |