desktop: package name for Mac (#2857)
* desktop: package name for Mac * added Windows
This commit is contained in:
parent
b003d659e4
commit
353fe4539c
@ -1,4 +1,6 @@
|
|||||||
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
||||||
|
import org.jetbrains.kotlin.util.capitalizeDecapitalize.toLowerCaseAsciiOnly
|
||||||
|
import java.util.*
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
kotlin("multiplatform")
|
||||||
@ -64,7 +66,12 @@ compose {
|
|||||||
appCategory = "public.app-category.social-networking"
|
appCategory = "public.app-category.social-networking"
|
||||||
bundleID = "chat.simplex.app"
|
bundleID = "chat.simplex.app"
|
||||||
}
|
}
|
||||||
packageName = "simplex"
|
val os = System.getProperty("os.name", "generic").toLowerCaseAsciiOnly()
|
||||||
|
if (os.contains("mac") || os.contains("win")) {
|
||||||
|
packageName = "SimpleX"
|
||||||
|
} else {
|
||||||
|
packageName = "simplex"
|
||||||
|
}
|
||||||
// Packaging requires to have version like MAJOR.MINOR.PATCH
|
// Packaging requires to have version like MAJOR.MINOR.PATCH
|
||||||
var adjustedVersion = rootProject.extra["desktop.version_name"] as String
|
var adjustedVersion = rootProject.extra["desktop.version_name"] as String
|
||||||
adjustedVersion = adjustedVersion.replace(Regex("[^0-9.]"), "")
|
adjustedVersion = adjustedVersion.replace(Regex("[^0-9.]"), "")
|
||||||
|
Loading…
Reference in New Issue
Block a user