Skip to content

Commit

Permalink
desktop release
Browse files Browse the repository at this point in the history
  • Loading branch information
j-roskopf committed May 28, 2024
1 parent e9b4e23 commit 18ff9d4
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/desktop-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
VERSION: ${{ env.VERSION }}

- name: Create PKG
run: ./gradlew :desktopApp:packagePkg
run: ./gradlew :desktopApp:packagePkg -PmacOsAppStoreRelease=true

- name: Upload reports
if: failure()
Expand Down
13 changes: 13 additions & 0 deletions desktopApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ compose.desktop {
application {
mainClass = "MainKt"

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

nativeDistributions {
modules("java.naming")

Expand All @@ -46,6 +48,17 @@ compose.desktop {
appleID.set("joebrothehobo@gmail.com")
password.set("@keychain:NOTARIZATION_PASSWORD")
}

minimumSystemVersion = "12.0"

if (isAppStoreRelease) {
entitlementsFile.set(project.file("entitlements.plist"))
runtimeEntitlementsFile.set(project.file("runtime-entitlements.plist"))
provisioningProfile.set(project.file("embedded.provisionprofile"))
runtimeProvisioningProfile.set(project.file("runtime.provisionprofile"))
} else {
entitlementsFile.set(project.file("default.entitlements"))
}
}
windows {
iconFile.set(project.file("src/jvmMain/resources/icon/desktop_icon.ico"))
Expand Down
12 changes: 12 additions & 0 deletions desktopApp/default.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
</dict>
</plist>
28 changes: 28 additions & 0 deletions desktopApp/entitlements.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
<key>com.apple.security.cs.debugger</key>
<true/>
<key>com.apple.security.device.audio-input</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.application-identifier</key>
<string>LVCF4PVSY3.com.joetr.sync.sphere.mac</string>
<key>com.apple.developer.team-identifier</key>
<string>LVCF4PVSY3</string>
</dict>
</plist>
20 changes: 20 additions & 0 deletions desktopApp/runtime-entitlements.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
<key>com.apple.security.cs.debugger</key>
<true/>
<key>com.apple.security.device.audio-input</key>
<true/>
</dict>
</plist>
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ android.minSdk=26
android.versionCode=16
android.versionName=1.4.3

kotlin.mpp.applyDefaultHierarchyTemplate=false
kotlin.mpp.applyDefaultHierarchyTemplate=false

macOsAppStoreRelease=false

0 comments on commit 18ff9d4

Please sign in to comment.