Skip to content

Commit

Permalink
v1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Mar 25, 2024
1 parent 2e10a2f commit c9171fa
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 12 deletions.
29 changes: 18 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "love.forte.bouns"
version = "1.0-SNAPSHOT"
version = "1.0.4"

repositories {
mavenCentral()
Expand Down Expand Up @@ -50,8 +50,7 @@ dependencies {
implementation(libs.koalaPlot.core)
}

val versionValue = "1.0.4"
val groupId = "forte.app"
val projectName = "StopBonus"

// https://github.com/JetBrains/compose-multiplatform/blob/master/tutorials/Native_distributions_and_local_execution/README.md
compose.desktop {
Expand All @@ -67,21 +66,29 @@ compose.desktop {
modules("java.sql", "java.naming")

targetFormats(
// TargetFormat.AppImage,
TargetFormat.Exe, TargetFormat.Dmg, TargetFormat.Deb
TargetFormat.Dmg, TargetFormat.Exe, TargetFormat.Msi, TargetFormat.Deb, TargetFormat.Rpm
)
packageName = "StopBonus"
packageVersion = versionValue
vendor = "ForteScarlet"

packageName = projectName
packageVersion = project.version.toString()
vendor = "Forte Scarlet"
description = "别再奖励自己了!"
copyright = "Copyright © 2024 Forte Scarlet."

linux {
menuGroup = project.group.toString()
iconFile.set(project.rootDir.resolve("icon.png"))
}

macOS {
bundleID = "${project.group}.$projectName"
iconFile.set(project.rootDir.resolve("icon.icns"))
}

windows {
shortcut = true
dirChooser = true
menu = true
menuGroup = groupId
perUserInstall = true
menuGroup = project.group.toString()
iconFile.set(project.rootDir.resolve("icon.ico"))
upgradeUuid = "f4a9a22b-b663-4848-95a8-7c0cf844da3f"
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Binary file added icon.icns
Binary file not shown.
17 changes: 17 additions & 0 deletions src/test/kotlin/FTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import java.nio.file.FileSystem
import java.nio.file.FileSystems
import java.nio.file.Files
import kotlin.io.path.Path

fun main() {

System.getenv().forEach { (k, v) ->
println("$k:\t$v")
}

println("====")

System.getProperties().list(System.out)


}

0 comments on commit c9171fa

Please sign in to comment.