@@ -14,10 +14,10 @@ java {
14
14
15
15
kotlin {
16
16
jvm(" desktop" )
17
-
17
+
18
18
sourceSets {
19
19
val desktopMain by getting
20
-
20
+
21
21
commonMain.dependencies {
22
22
implementation(compose.runtime)
23
23
implementation(compose.foundation)
@@ -38,30 +38,40 @@ kotlin {
38
38
39
39
implementation(libs.klogging)
40
40
}
41
- // https://gist.github.com/OysterD3?page=3
42
- // https://betterprogramming.pub/how-to-create-an-auto-updater-for-desktop-application-jetpack-compose-d118db26d65f
43
41
desktopMain.dependencies {
44
- implementation(compose.desktop.currentOs){
42
+ implementation(compose.desktop.currentOs) {
45
43
exclude(" org.jetbrains.compose.material" )
46
44
}
47
45
implementation(libs.kotlinx.coroutines.swing)
48
46
}
49
47
}
50
48
}
51
49
52
-
53
50
compose.desktop {
54
51
application {
55
52
mainClass = " fr.thomasbernard03.androidtools.MainKt"
56
53
54
+ buildTypes {
55
+ release {
56
+ proguard {
57
+ configurationFiles.from(" proguard-rules.pro" ) // Ajoute un fichier de règles personnalisé si nécessaire
58
+ // ignoreWarnings.set(true) // Cette option permet d'ignorer les avertissements
59
+ }
60
+ }
61
+ }
62
+
57
63
nativeDistributions {
58
- targetFormats(TargetFormat .Dmg , TargetFormat .Exe , TargetFormat .Deb )
59
- packageName = " fr.thomasbernard03.androidtools "
64
+ targetFormats(TargetFormat .Pkg , TargetFormat .Exe , TargetFormat .Deb )
65
+ packageName = " Android Tools "
60
66
packageVersion = " 1.0.0"
61
67
68
+ macOS {
69
+ iconFile.set(project.file(" src/commonMain/composeResources/drawable/icon.icns" ))
70
+ }
71
+
62
72
windows {
63
- iconFile.set(project.file(" icon.ico" ))
73
+ iconFile.set(project.file(" src/commonMain/composeResources/drawable/ icon.ico" ))
64
74
}
65
75
}
66
76
}
67
- }
77
+ }
0 commit comments