Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

remote server on macOS: Sign with entitlements (#18863)

Thorsten Ballff7aa024eea8
diff --git a/script/bundle-mac b/script/bundle-mac
index 4c177918121..bc95e1dd6a9 100755
--- a/script/bundle-mac
+++ b/script/bundle-mac
@@ -83,7 +83,10 @@ if [ "$local_arch" = true ]; then
cargo build ${build_flag} --package zed --package cli --package remote_server
else
echo "Compiling zed binaries"
- cargo build ${build_flag} --package zed --package cli --package remote_server --target aarch64-apple-darwin --target x86_64-apple-darwin
+ cargo build ${build_flag} --package zed --package cli --target aarch64-apple-darwin --target x86_64-apple-darwin
+ # Build remote_server in separate invocation to prevent feature unification from other crates
+ # from influencing dynamic libraries required by it.
+ cargo build ${build_flag} --package remote_server --target aarch64-apple-darwin --target x86_64-apple-darwin
fi
echo "Creating application bundle"
@@ -358,7 +361,7 @@ function sign_binary() {
if [[ $can_code_sign = true ]]; then
echo "Code signing executable $binary_path"
- /usr/bin/codesign --deep --force --timestamp --options runtime --sign "$IDENTITY" "${binary_path}" -v
+ /usr/bin/codesign --deep --force --timestamp --options runtime --entitlements crates/zed/resources/zed.entitlements --sign "$IDENTITY" "${binary_path}" -v
fi
}