1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 05:53:42 +00:00

experiment with entitlements and signing the framework

This commit is contained in:
Anders Åberg
2025-01-23 20:14:10 +01:00
parent 54865a3875
commit 41e304f431
2 changed files with 11 additions and 12 deletions

View File

@@ -1441,12 +1441,9 @@ jobs:
- name: Resign
run: |
codesign -dvvv "./dist/mas-dev-universal/Bitwarden.app" 2>&1 | grep -iE "TeamIdentifier|flags|Format|Identifier|Authority"
codesign -dvvv "./dist/mas-dev-universal/Bitwarden.app/Contents/PlugIns/autofill-extension.appex" 2>&1 | grep -iE "TeamIdentifier|flags|Format|Identifier|Authority"
security find-identity -v -p codesigning
# Resign the Electron Framework
codesign --force --deep --options=runtime --sign "Developer ID Application: 8bit Solutions LLC (LTZ2PFU5D6)" --timestamp --generate-entitlement-der --preserve-metadata=identifier,flags Bitwarden.app/Contents/Frameworks/Electron\ Framework.framework
# Resign the bundle
codesign --entitlements resources/entitlements.mas.plist --deep --verbose --options runtime --force --sign "Developer ID Application: 8bit Solutions LLC (LTZ2PFU5D6)" dist/mas-dev-universal/Bitwarden.app
- name: Zip masdev asset

View File

@@ -1,12 +1,14 @@
<?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/>
<!--
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true />
<!--
<key>com.apple.developer.authentication-services.autofill-credential-provider</key>
<true/>
-->
</dict>
</plist>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true />
</dict>
</plist>