Skip to content

Commit

Permalink
add icons
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBernard03 committed Jan 26, 2025
1 parent 897a14e commit f834639
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
30 changes: 20 additions & 10 deletions composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ java {

kotlin {
jvm("desktop")

sourceSets {
val desktopMain by getting

commonMain.dependencies {
implementation(compose.runtime)
implementation(compose.foundation)
Expand All @@ -38,30 +38,40 @@ kotlin {

implementation(libs.klogging)
}
// https://gist.github.com/OysterD3?page=3
// https://betterprogramming.pub/how-to-create-an-auto-updater-for-desktop-application-jetpack-compose-d118db26d65f
desktopMain.dependencies {
implementation(compose.desktop.currentOs){
implementation(compose.desktop.currentOs) {
exclude("org.jetbrains.compose.material")
}
implementation(libs.kotlinx.coroutines.swing)
}
}
}


compose.desktop {
application {
mainClass = "fr.thomasbernard03.androidtools.MainKt"

buildTypes {
release {
proguard {
configurationFiles.from("proguard-rules.pro") // Ajoute un fichier de règles personnalisé si nécessaire
// ignoreWarnings.set(true) // Cette option permet d'ignorer les avertissements
}
}
}

nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Exe, TargetFormat.Deb)
packageName = "fr.thomasbernard03.androidtools"
targetFormats(TargetFormat.Pkg, TargetFormat.Exe, TargetFormat.Deb)
packageName = "Android Tools"
packageVersion = "1.0.0"

macOS {
iconFile.set(project.file("src/commonMain/composeResources/drawable/icon.icns"))
}

windows {
iconFile.set(project.file("icon.ico"))
iconFile.set(project.file("src/commonMain/composeResources/drawable/icon.ico"))
}
}
}
}
}
Binary file not shown.
3 changes: 3 additions & 0 deletions proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-dontwarn androidx.compose.material.**
-dontwarn META-INF.MANIFEST.MF
-dontwarn kotlinx.serialization.**

0 comments on commit f834639

Please sign in to comment.