Skip to content

Commit

Permalink
code sign in changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shyam-cb committed Nov 8, 2024
1 parent bd1622c commit 9355916
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,13 @@ jobs:
security set-key-partition-list -S apple-tool:,apple: -s -k $KEYCHAIN_PASSWORD build.keychain
# build the binary and signin with certificate
pyinstaller hf_to_cb_dataset_migrator/cli.py --name hf_to_cb_dataset_migrator --codesign-identity "Developer ID Application: Couchbase, Inc. ($APPLE_TEAM_ID)"
pyinstaller hf_to_cb_dataset_migrator/cli.py --name hf_to_cb_dataset_migrator
codesign --force --options runtime --timestamp --entitlements ./entitlements.plist \
--sign "Developer ID Application: Couchbase, Inc. ($APPLE_TEAM_ID)" \
dist/hf_to_cb_dataset_migrator/hf_to_cb_dataset_migrator
# Verify the code-signing
codesign --verify --deep --strict --verbose dist/hf_to_cb_dataset_migrator/hf_to_cb_dataset_migrator
Expand Down
13 changes: 13 additions & 0 deletions entitlements.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?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>
<!-- These are required for binaries built by PyInstaller -->
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
</dict>
</plist>

0 comments on commit 9355916

Please sign in to comment.