Skip to content

Commit

Permalink
Install provisioning Profile for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
jigar-f committed Jan 1, 2025
1 parent efa0ad1 commit e05875e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,16 @@ jobs:
p12-file-base64: ${{ secrets.MACOS_BNS_CERT }}
p12-password: ${{ secrets.MACOS_BNS_CERT_PASS }}

- name: Install provisioning Profile for macos
if: matrix.platform == 'macos'
env:
BUILD_MACOS_PROVISION_PROFILE_BASE64: ${{ secrets.MACOS_PROVISION_PROFILE_BASE64 }}
run: |
PP_PATH=$RUNNER_TEMP/build_pp.provisionprofile
# apply main provisioning profile
echo -n "BUILD_MACOS_PROVISION_PROFILE_BASE64" | base64 --decode -o $PP_PATH
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles
- name: Install the Apple certificate and provisioning profile IOS
if: matrix.platform == 'ios'
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Publish releases
on:
# Triggers the workflow on push when pushing to a version tag
push:
branches:
- jigar/macos-cert
tags:
- '*lantern-*'
workflow_run:
Expand Down
8 changes: 5 additions & 3 deletions macos/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -724,10 +724,11 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Mac Developer";
CODE_SIGN_STYLE = Manual;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = ACZRKC3LQ9;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=macosx*]" = ACZRKC3LQ9;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = Lantern;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -736,6 +737,7 @@
);
MACOSX_DEPLOYMENT_TARGET = 10.15;
PROVISIONING_PROFILE_SPECIFIER = "";
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "macOS Development";
SWIFT_VERSION = 5.0;
};
name = Release;
Expand Down

0 comments on commit e05875e

Please sign in to comment.