代码拉取完成,页面将自动刷新
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")
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。