[DESKTOP] Base for Mac App Store build v2

This commit is contained in:
Kamil Gurgul
2024-08-30 20:46:50 +02:00
parent e5c9281c51
commit f2276cdde3
3 changed files with 24 additions and 4 deletions
+11
View File
@@ -70,3 +70,14 @@ jobs:
base64 -d -i desktopApp/runtime.provisionprofile.b64 > desktopApp/runtime.provisionprofile
env:
RUNTIME_PROVISION: ${{ secrets.MAC_RUNTIME_PROVISION }}
- name: Create PKG
run: ./gradlew packageReleasePkg -PmacOsAppStoreRelease=true
- uses: Apple-Actions/upload-testflight-build@v1
with:
app-type: 'osx'
app-path: desktopApp/build/compose/binaries/main-release/pkg/CPU-Info-${{ github.event.inputs.version }}.pkg
issuer-id: ${{ secrets.IOS_APPSTORE_ISSUER_ID }}
api-key-id: ${{ secrets.IOS_APPSTORE_KEY_ID }}
api-private-key: ${{ secrets.IOS_APPSTORE_PRIVATE_KEY }}
+9 -2
View File
@@ -27,10 +27,17 @@ compose.desktop {
val iconsRoot = project.file("desktop-icons")
macOS {
val isAppStoreRelease = project.property("macOsAppStoreRelease")
.toString()
.toBoolean()
bundleID = "com.kgurgul.cpuinfo"
iconFile.set(iconsRoot.resolve("icon-mac.icns"))
provisioningProfile.set(project.file("embedded.provisionprofile"))
runtimeProvisioningProfile.set(project.file("runtime.provisionprofile"))
appStore = isAppStoreRelease
minimumSystemVersion = "12.0"
if (isAppStoreRelease) {
provisioningProfile.set(project.file("embedded.provisionprofile"))
runtimeProvisioningProfile.set(project.file("runtime.provisionprofile"))
}
}
windows {
iconFile.set(iconsRoot.resolve("icon-windows.ico"))
+4 -2
View File
@@ -5,11 +5,13 @@ org.gradle.jvmargs=-Xmx8192M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\=
systemProp.javax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
systemProp.javax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
systemProp.javax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
#Android
# Android
android.nonTransitiveRClass=true
android.useAndroidX=true
#Kotlin Multiplatform
# Kotlin Multiplatform
kotlin.apple.xcodeCompatibility.nowarn=true
kotlin.native.ignoreDisabledTargets=true
kotlin.mpp.androidGradlePluginCompatibility.nowarn=true
kotlin.mpp.enableCInteropCommonization=true
# Custom
macOsAppStoreRelease=false