Skip to content

Commit

Permalink
Pass entitlements while creating packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
jigar-f committed Jan 9, 2025
1 parent b1e2328 commit 9f0dd9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ DEBUG_VERSION ?= $(GIT_REVISION)

DWARF_DSYM_FOLDER_PATH=$(shell pwd)/build/ios/archive/Runner.xcarchive/dSYMs/
INFO_PLIST := ios/Runner/Info.plist
ENTITLEMENTS := macos/Runner/Release.entitlements

DESKTOP_LIB_NAME ?= liblantern
DARWIN_LIB_NAME ?= $(DESKTOP_LIB_NAME).dylib
Expand Down Expand Up @@ -243,7 +244,7 @@ tag: require-version
git push

define osxcodesign
codesign --options runtime --strict --timestamp --force --deep -s "Developer ID Application: Brave New Software Project, Inc (ACZRKC3LQ9)" -v $(1)
codesign --options runtime --strict --timestamp --force --entitlements $(ENTITLEMENTS) --deep -s "Developer ID Application: Brave New Software Project, Inc (ACZRKC3LQ9)" -v $(1)
endef

guard-%:
Expand Down
2 changes: 1 addition & 1 deletion macos/Runner/Release.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<string>webcredentials:lantern.io</string>
</array>
<key>com.apple.security.app-sandbox</key>
<true/>
<false/>
</dict>
</plist>

0 comments on commit 9f0dd9c

Please sign in to comment.