Skip to content

Commit

Permalink
Include native libs only for app store release
Browse files Browse the repository at this point in the history
  • Loading branch information
prof18 committed Feb 14, 2024
1 parent e6173da commit 7822fa6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions desktopApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,14 @@ compose {
configurationFiles.from(project.file("compose-desktop.pro"))
}

val isAppStoreRelease = project.property("macOsAppStoreRelease").toString().toBoolean()

nativeDistributions {
outputBaseDir.set(layout.buildDirectory.asFile.get().resolve("release"))
appResourcesRootDir.set(project.layout.projectDirectory.dir("resources"))

if (isAppStoreRelease) {
appResourcesRootDir.set(project.layout.projectDirectory.dir("resources"))
}

modules("java.instrument", "java.sql", "jdk.unsupported")

Expand All @@ -72,13 +77,11 @@ compose {
packageName = "FeedFlow"
bundleID = "com.prof18.feedflow"

val isAppStoreRelease = project.property("macOsAppStoreRelease").toString().toBoolean()

appStore = isAppStoreRelease

signing {
sign.set(true)
identity.set("Developer ID Application: Marco Gomiero (Q7CUB3RNAK)")
identity.set("Marco Gomiero")
}

// minimumSystemVersion = "12.0"
Expand Down

0 comments on commit 7822fa6

Please sign in to comment.