Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix ./script/bundle to allow passing key
Conrad Irwin5dbda7023517
diff --git a/crates/client/src/client.rs b/crates/client/src/client.rsindex 62cd60c55fd..22e8bc06d4e 100644--- a/crates/client/src/client.rs+++ b/crates/client/src/client.rs@@ -799,7 +799,6 @@ impl Client {}}status = status_rx.next().fuse() => {- dbg!(status);return Err(anyhow!("authentication canceled"));}}diff --git a/crates/gpui/src/platform/mac/platform.rs b/crates/gpui/src/platform/mac/platform.rsindex 47ad72eeb23..24ad7747590 100644--- a/crates/gpui/src/platform/mac/platform.rs+++ b/crates/gpui/src/platform/mac/platform.rs@@ -1014,7 +1014,6 @@ extern "C" fn open_urls(this: &mut Object, _: Sel, _: id, urls: id) {}extern "C" fn continue_user_activity(this: &mut Object, _: Sel, _: id, user_activity: id, _: id) {- dbg!("yay!");let url = unsafe {let url: id = msg_send!(user_activity, webpageURL);if url == nil {@@ -1028,7 +1027,6 @@ extern "C" fn continue_user_activity(this: &mut Object, _: Sel, _: id, user_acti)}};- dbg!(&url);let platform = unsafe { get_foreground_platform(this) };if let Some(callback) = platform.0.borrow_mut().open_urls.as_mut() {callback(url.into_iter().collect());diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rsindex 1644f86b61c..7773abc19cc 100644--- a/crates/workspace/src/workspace.rs+++ b/crates/workspace/src/workspace.rs@@ -4162,7 +4162,6 @@ async fn join_channel_internal(active_call: &ModelHandle<ActiveCall>,cx: &mut AsyncAppContext,) -> Result<bool> {- dbg!("join channel internal");let should_prompt = active_call.read_with(cx, |active_call, cx| {let Some(room) = active_call.room().map(|room| room.read(cx)) else {return false;@@ -4195,7 +4194,6 @@ async fn join_channel_internal(return Ok(false); // unreachable!() hopefully}}- dbg!("asdajdkjkasd");let client = cx.read(|cx| active_call.read(cx).client());@@ -4221,8 +4219,6 @@ async fn join_channel_internal(}}- dbg!("past here");-let room = active_call.update(cx, |active_call, cx| {active_call.join_channel(channel_id, cx)@@ -4231,8 +4227,6 @@ async fn join_channel_internal(room.update(cx, |room, _| room.next_room_update()).await;- dbg!("wow");-let task = room.update(cx, |room, cx| {if let Some((project, host)) = room.most_active_project() {return Some(join_remote_project(project, host, app_state.clone(), cx));@@ -4273,7 +4267,6 @@ pub fn join_channel(&mut cx,).await;- dbg!("joined!");// join channel succeeded, and opened a windowif matches!(result, Ok(true)) {diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rsindex f25a1e14be0..004e5769d57 100644--- a/crates/zed/src/main.rs+++ b/crates/zed/src/main.rs@@ -279,7 +279,6 @@ fn main() {}OpenRequest::JoinChannel { channel_id } => cx.update(|cx| {- dbg!("joining channel");workspace::join_channel(channel_id, app_state.clone(), None, cx)}).detach(),diff --git a/script/bundle b/script/bundleindex 94741d290fc..a1d0b305c8f 100755--- a/script/bundle+++ b/script/bundle@@ -128,7 +128,11 @@ fiecho "Copying WebRTC.framework into the frameworks folder"mkdir "${app_path}/Contents/Frameworks"-cp -R target/${local_target_triple}/${target_dir}/WebRTC.framework "${app_path}/Contents/Frameworks/"+if [ "$local_arch" = false ]; then+ cp -R target/${local_target_triple}/${target_dir}/WebRTC.framework "${app_path}/Contents/Frameworks/"+else+ cp -R target/${target_dir}/WebRTC.framework "${app_path}/Contents/Frameworks/"+fiif [[ -n $MACOS_CERTIFICATE && -n $MACOS_CERTIFICATE_PASSWORD && -n $APPLE_NOTARIZATION_USERNAME && -n $APPLE_NOTARIZATION_PASSWORD ]]; thenecho "Signing bundle with Apple-issued certificate"@@ -144,7 +148,9 @@ if [[ -n $MACOS_CERTIFICATE && -n $MACOS_CERTIFICATE_PASSWORD && -n $APPLE_NOTARelseecho "One or more of the following variables are missing: MACOS_CERTIFICATE, MACOS_CERTIFICATE_PASSWORD, APPLE_NOTARIZATION_USERNAME, APPLE_NOTARIZATION_PASSWORD"echo "Performing an ad-hoc signature, but this bundle should not be distributed"- codesign --force --deep --entitlements crates/zed/resources/zed.entitlements --sign - "${app_path}" -v+ echo "If you see 'The application cannot be opened for an unexpected reason,' you likely don't have the necessary entitlements to run the application in your signing keychain"+ echo "You will need to download a new signing key from developer.apple.com, add it to keychain, and export MACOS_SIGNING_KEY=<email address of signing key>"+ codesign --force --deep --entitlements crates/zed/resources/zed.entitlements --sign ${MACOS_SIGNING_KEY:- -} "${app_path}" -vfiif [[ "$target_dir" = "debug" && "$local_only" = false ]]; then