From cf96efd591cb0330b10b518244900ff891d73e20 Mon Sep 17 00:00:00 2001 From: Nayam Amarshe <25067102+NayamAmarshe@users.noreply.github.com> Date: Sun, 15 Oct 2023 10:57:13 +0530 Subject: [PATCH] Add provisionprofile --- .github/workflows/main.yml | 2 ++ package.json | 38 +++++++++++++++++++------------------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b64d199..b60ec5f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,6 +36,7 @@ jobs: APPLEIDPASS: ${{ secrets.APPLEIDPASS }} TEAMID: ${{ secrets.TEAMID }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PROVISION_PROFILE: ${{ secrets.PROVISION_PROFILE }} steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3.5.0 @@ -45,6 +46,7 @@ jobs: run: | npm install rm -rf node_modules/sharp + echo -n "$PROVISION_PROFILE" | base64 --decode > embedded.provisionprofile npm install --platform=darwin --arch=x64 sharp npm rebuild --platform=darwin --arch=arm64 sharp npm run publish-mac-app diff --git a/package.json b/package.json index 391c4a9..b4b8eb1 100644 --- a/package.json +++ b/package.json @@ -96,6 +96,25 @@ "to": "resources/512x512.png" } ], + "mas": { + "hardenedRuntime": false, + "type": "distribution", + "category": "public.app-category.photography", + "entitlements": "resources/entitlements.mac.plist", + "entitlementsInherit": "resources/entitlements.mas.inherit.plist", + "provisioningProfile": "embedded.provisionprofile", + "mergeASARs": false, + "icon": "build/icon.icns", + "x64ArchFiles": "*", + "target": [ + { + "target": "pkg", + "arch": [ + "universal" + ] + } + ] + }, "mac": { "type": "distribution", "category": "public.app-category.photography", @@ -121,25 +140,6 @@ ], "x64ArchFiles": "*" }, - "mas": { - "hardenedRuntime": false, - "type": "distribution", - "category": "public.app-category.photography", - "entitlements": "resources/entitlements.mac.plist", - "entitlementsInherit": "resources/entitlements.mas.inherit.plist", - "provisioningProfile": "embedded.provisionprofile", - "mergeASARs": false, - "icon": "build/icon.icns", - "x64ArchFiles": "*", - "target": [ - { - "target": "pkg", - "arch": [ - "universal" - ] - } - ] - }, "dmg": { "sign": "false", "contents": [