Skip to content

Commit 30aef89

Browse files
committed
v1.0.4
1 parent 1848edb commit 30aef89

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

build.gradle.kts

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@ plugins {
88
alias(libs.plugins.jetbrainsCompose)
99
}
1010

11-
group = "love.forte.bonus"
12-
version = "1.0.4"
11+
val projectName = "StopBonus"
12+
val appPackage = "love.forte.bonus"
13+
val appNameWithPackage = "$appPackage.$projectName"
14+
val appVersion = "1.0.4"
15+
16+
group = appPackage
17+
version = appVersion
1318

1419
repositories {
1520
mavenCentral()
@@ -50,7 +55,6 @@ dependencies {
5055
implementation(libs.koalaPlot.core)
5156
}
5257

53-
val projectName = "StopBonus"
5458

5559
// https://github.com/JetBrains/compose-multiplatform/blob/master/tutorials/Native_distributions_and_local_execution/README.md
5660
compose.desktop {
@@ -68,30 +72,29 @@ compose.desktop {
6872
targetFormats(
6973
TargetFormat.Dmg, TargetFormat.Exe, TargetFormat.Msi, TargetFormat.Deb, TargetFormat.Rpm
7074
)
71-
72-
packageName = projectName
73-
packageVersion = project.version.toString()
75+
packageName = appNameWithPackage
76+
packageVersion = appVersion
7477
vendor = "Forte Scarlet"
7578
description = "别再奖励自己了!"
7679
copyright = "Copyright © 2024 Forte Scarlet."
7780

7881
linux {
79-
menuGroup = project.group.toString()
82+
menuGroup = appPackage
8083
iconFile.set(project.rootDir.resolve("icon.png"))
8184
}
8285

8386
macOS {
84-
bundleID = "${project.group}.$projectName"
87+
bundleID = appNameWithPackage
8588
iconFile.set(project.rootDir.resolve("icon.icns"))
8689
}
8790

8891
windows {
8992
// shortcut = true
9093
dirChooser = true
91-
menuGroup = project.group.toString()
94+
menuGroup = appPackage
9295
iconFile.set(project.rootDir.resolve("icon.ico"))
9396
upgradeUuid = "f4a9a22b-b663-4848-95a8-7c0cf844da3f"
94-
exePackageVersion = project.version.toString()
97+
exePackageVersion = appVersion
9598
}
9699
}
97100

0 commit comments

Comments
 (0)