Skip to content

Commit

Permalink
Add icons and title for desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
Turskyi committed Dec 10, 2023
1 parent ff52787 commit 0b6b91e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 2 deletions.
14 changes: 13 additions & 1 deletion composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,20 @@ compose.desktop {

nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = libs.versions.applicationId.get()
packageName = libs.versions.dockName.get()
packageVersion = libs.versions.versionName.get()

macOS {
iconFile.set(project.file("../composeApp/src/desktopMain/icons/icon.icns"))
bundleID = libs.versions.applicationId.get()
dockName = libs.versions.dockName.get()
}
windows {
iconFile.set(project.file("../composeApp/src/desktopMain/icons/icon.ico"))
}
linux {
iconFile.set(project.file("../composeApp/src/desktopMain/icons/icon.png"))
}
}
}
}
Binary file added composeApp/src/desktopMain/icons/icon.icns
Binary file not shown.
Binary file added composeApp/src/desktopMain/icons/icon.ico
Binary file not shown.
Binary file added composeApp/src/desktopMain/icons/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion composeApp/src/desktopMain/kotlin/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ import androidx.compose.ui.window.application
import app.App

fun main() = application {
Window(onCloseRequest = ::exitApplication) {
Window(
// This is the window title
title = "Politer AI",
onCloseRequest = ::exitApplication
) {
App()
}
}
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ firebase-analytics = "21.5.0"
versionName = "1.0.2"
versionCode = "3"
applicationId = "com.turskyi.politerai"
dockName = "Politer AI"

[libraries]
firebase-crashlytics-gradle = { group = "com.google.firebase", name = "firebase-crashlytics-gradle", version.ref = "firebaseCrashlyticsGradle" }
Expand Down

0 comments on commit 0b6b91e

Please sign in to comment.