Skip to content

Commit

Permalink
Merge branch 'refs/heads/master' into contribution-update
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-tennert committed Jul 2, 2024
2 parents 6dbef85 + e8f6f2d commit b9a7127
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
18 changes: 7 additions & 11 deletions buildSrc/src/main/kotlin/Sample.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import org.jetbrains.compose.desktop.DesktopExtension
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.plugin.KotlinDependencyHandler
Expand All @@ -20,17 +18,15 @@ fun KotlinDependencyHandler.addModules(vararg modules: SupabaseModule) {
}
}

fun Project.configureComposeDesktop(
fun DesktopExtension.configureComposeDesktop(
name: String,
) {
extensions.configure(DesktopExtension::class) {
application {
mainClass = "MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = name
packageVersion = "1.0.0"
}
application {
mainClass = "MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = name
packageVersion = "1.0.0"
}
}
}
2 changes: 1 addition & 1 deletion sample/chat-demo-mpp/desktop/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ kotlin {
}
}

configureComposeDesktop("chat-demo-mpp")
compose.desktop.configureComposeDesktop("chat-demo-mpp")

0 comments on commit b9a7127

Please sign in to comment.