-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle.kts
81 lines (67 loc) · 2.38 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
alias(libs.plugins.kotlin)
alias(libs.plugins.compose)
alias(libs.plugins.ksp)
}
group = "io.github.jixiaoyong"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
google()
maven("https://jitpack.io")
}
ksp {
arg("lyricist.generateStringsProperty", "true")
}
dependencies {
implementation(compose.desktop.currentOs)
implementation(libs.multisettings.noarg)
implementation(libs.multisettings.serialization)
implementation(libs.multisettings.coroutines)
implementation(libs.gson)
implementation(libs.jsystemThemeDetector)
implementation(libs.ksp)
// Required
implementation(libs.lyricist.lib)
// If you want to use @LyricistStrings to generate code for you
ksp(libs.lyricist.processor)
implementation(libs.composeIcons.fontAwesome)
implementation(libs.androidx.datastore.preferences.core)
implementation(libs.androidx.datastore.core.okio)
implementation(libs.jetbrains.navigation.compose)
implementation(libs.jetbrains.lifecycle.viewmodel)
implementation(libs.sujanpoudel.multiplatform.paths)
}
compose.desktop {
application {
mainClass = "MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "ApkSigner"
packageVersion = "1.2.1"
modules("jdk.unsupported") // for datastore compatibility
buildTypes.release {
proguard() {
configurationFiles.from("compose.desktop.pro")
isEnabled.set(false)
}
}
macOS {
iconFile.set(project.file("src/main/resources/imgs/icon.icns"))
}
windows {
iconFile.set(project.file("src/main/resources/imgs/icon.ico"))
}
linux {
iconFile.set(project.file("src/main/resources/imgs/icon.png"))
}
}
}
}
// 将这些属性作为额外的属性添加到项目中
extra["packageName"] = compose.desktop.application.nativeDistributions.packageName
extra["packageVersion"] = compose.desktop.application.nativeDistributions.packageVersion
apply(from = "versionInfo.gradle.kts")