diff --git a/composeApp/build.gradle.kts b/composeApp/build.gradle.kts index 323ee42e1..118b9b81b 100644 --- a/composeApp/build.gradle.kts +++ b/composeApp/build.gradle.kts @@ -452,6 +452,15 @@ compose.desktop { targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb) packageName = "Nuvio" packageVersion = releaseAppVersionName + macOS { + iconFile.set(project.file("src/desktopMain/resources/icons/nuvio-app-icon.icns")) + } + windows { + iconFile.set(project.file("src/desktopMain/resources/icons/nuvio-app-icon.ico")) + } + linux { + iconFile.set(project.file("src/desktopMain/resources/icons/nuvio-app-icon.png")) + } } } } diff --git a/composeApp/src/desktopMain/kotlin/com/nuvio/app/Main.kt b/composeApp/src/desktopMain/kotlin/com/nuvio/app/Main.kt index f036f4e70..c10f0360d 100644 --- a/composeApp/src/desktopMain/kotlin/com/nuvio/app/Main.kt +++ b/composeApp/src/desktopMain/kotlin/com/nuvio/app/Main.kt @@ -7,6 +7,7 @@ import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.runtime.setValue import androidx.compose.ui.Modifier +import androidx.compose.ui.res.painterResource import androidx.compose.ui.window.Window import androidx.compose.ui.window.WindowState import androidx.compose.ui.window.application @@ -17,6 +18,7 @@ import java.awt.Color as AwtColor import javax.swing.JComponent private val NuvioDesktopNativeBackground = AwtColor(0x0D, 0x0D, 0x0D) +private const val NuvioDesktopIconPath = "icons/nuvio-app-icon.png" fun main() { preloadNativePlayerBridgeAsync() @@ -32,6 +34,7 @@ fun main() { onCloseRequest = ::exitApplication, title = if (smokePlayerUrl == null) "Nuvio" else "Nuvio Player Smoke", state = WindowState(width = 1280.dp, height = 820.dp), + icon = painterResource(NuvioDesktopIconPath), ) { SideEffect { window.background = NuvioDesktopNativeBackground diff --git a/composeApp/src/desktopMain/resources/icons/nuvio-app-icon.icns b/composeApp/src/desktopMain/resources/icons/nuvio-app-icon.icns new file mode 100644 index 000000000..2c68eb9cb Binary files /dev/null and b/composeApp/src/desktopMain/resources/icons/nuvio-app-icon.icns differ diff --git a/composeApp/src/desktopMain/resources/icons/nuvio-app-icon.ico b/composeApp/src/desktopMain/resources/icons/nuvio-app-icon.ico new file mode 100644 index 000000000..edcfdfcc3 Binary files /dev/null and b/composeApp/src/desktopMain/resources/icons/nuvio-app-icon.ico differ diff --git a/composeApp/src/desktopMain/resources/icons/nuvio-app-icon.png b/composeApp/src/desktopMain/resources/icons/nuvio-app-icon.png new file mode 100644 index 000000000..9fc0d4ade Binary files /dev/null and b/composeApp/src/desktopMain/resources/icons/nuvio-app-icon.png differ