mirror of
https://github.com/sudosylabs/vnidrop.git
synced 2026-08-05 18:39:55 +02:00
Wire Android adaptive/webp launchers, iOS AppIcon, and desktop package icons (macOS icns, Windows ico, Linux png) from a shared assets/ tree.
45 lines
1.0 KiB
Kotlin
45 lines
1.0 KiB
Kotlin
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
|
|
|
plugins {
|
|
alias(libs.plugins.kotlinJvm)
|
|
alias(libs.plugins.composeMultiplatform)
|
|
alias(libs.plugins.composeCompiler)
|
|
}
|
|
|
|
dependencies {
|
|
implementation(projects.shared)
|
|
|
|
implementation(compose.desktop.currentOs)
|
|
implementation(libs.kotlinx.coroutinesSwing)
|
|
implementation(libs.jna)
|
|
|
|
implementation(libs.compose.uiToolingPreview)
|
|
testImplementation(libs.kotlin.testJunit)
|
|
}
|
|
|
|
compose.desktop {
|
|
application {
|
|
mainClass = "com.vnidrop.app.MainKt"
|
|
|
|
nativeDistributions {
|
|
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
|
|
packageName = "com.vnidrop.app"
|
|
packageVersion = "1.0.0"
|
|
macOS {
|
|
iconFile.set(project.file("../assets/macos/app-icon.icns"))
|
|
}
|
|
windows {
|
|
iconFile.set(project.file("../assets/windows/app-icon.ico"))
|
|
}
|
|
linux {
|
|
iconFile.set(project.file("../assets/linux/app-icon.png"))
|
|
}
|
|
fileAssociation(
|
|
mimeType = "application/vnd.vnidrop.transfer",
|
|
extension = "vnd",
|
|
description = "VniDrop Invitation",
|
|
)
|
|
}
|
|
}
|
|
}
|