mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
Merge remote-tracking branch 'origin/master' into av/desktop-windows-build
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
||||
import org.jetbrains.kotlin.util.capitalizeDecapitalize.toLowerCaseAsciiOnly
|
||||
import java.util.*
|
||||
|
||||
plugins {
|
||||
kotlin("multiplatform")
|
||||
@@ -63,8 +65,30 @@ compose {
|
||||
iconFile.set(project.file("src/jvmMain/resources/distribute/simplex.icns"))
|
||||
appCategory = "public.app-category.social-networking"
|
||||
bundleID = "chat.simplex.app"
|
||||
val identity = rootProject.extra["desktop.mac.signing.identity"] as String?
|
||||
val keychain = rootProject.extra["desktop.mac.signing.keychain"] as String?
|
||||
val appleId = rootProject.extra["desktop.mac.notarization.apple_id"] as String?
|
||||
val password = rootProject.extra["desktop.mac.notarization.password"] as String?
|
||||
val teamId = rootProject.extra["desktop.mac.notarization.team_id"] as String?
|
||||
if (identity != null && keychain != null && appleId != null && password != null) {
|
||||
signing {
|
||||
sign.set(true)
|
||||
this.identity.set(identity)
|
||||
this.keychain.set(keychain)
|
||||
}
|
||||
notarization {
|
||||
this.appleID.set(appleId)
|
||||
this.password.set(password)
|
||||
this.ascProvider.set(teamId)
|
||||
}
|
||||
}
|
||||
}
|
||||
val os = System.getProperty("os.name", "generic").toLowerCaseAsciiOnly()
|
||||
if (os.contains("mac") || os.contains("win")) {
|
||||
packageName = "SimpleX"
|
||||
} else {
|
||||
packageName = "simplex"
|
||||
}
|
||||
packageName = "simplex"
|
||||
// Packaging requires to have version like MAJOR.MINOR.PATCH
|
||||
var adjustedVersion = rootProject.extra["desktop.version_name"] as String
|
||||
adjustedVersion = adjustedVersion.replace(Regex("[^0-9.]"), "")
|
||||
|
||||
Reference in New Issue
Block a user