Skip to content

Commit 580beb8

Browse files
committed
Configure desktop native targets
1 parent 023e3bb commit 580beb8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

desktop/build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
2+
13
plugins {
24
kotlin("jvm")
35
alias(libs.plugins.compose.compiler)
@@ -15,5 +17,12 @@ dependencies {
1517
compose.desktop {
1618
application {
1719
mainClass = "com.jdamcd.arrivals.desktop.MainKt"
20+
21+
nativeDistributions {
22+
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
23+
includeAllModules = true
24+
packageName = "ArrivalsDesktop"
25+
packageVersion = "1.0.0"
26+
}
1827
}
1928
}

shared/src/jvmMain/kotlin/com/jdamcd/arrivals/Settings.jvm.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.jdamcd.arrivals
22

33
actual class Settings actual constructor() {
4-
actual var mode = SettingsConfig.MODE_TFL
4+
actual var mode = SettingsConfig.MODE_GTFS
55
actual var tflStopId = SettingsConfig.TFL_STOP_ID_DEFAULT
66
actual var tflPlatform = SettingsConfig.TFL_PLATFORM_DEFAULT
77
actual var tflDirection = SettingsConfig.TFL_DIRECTION_DEFAULT

0 commit comments

Comments
 (0)