From 4511d11a11683f09db4b577534b85a247a61b226 Mon Sep 17 00:00:00 2001 From: claytonrcarter Date: Fri, 7 Nov 2025 15:38:01 -0500 Subject: [PATCH] bundle: Skip sentry upload for local install on macOS (#42231) This is a follow up to #41482. When running `script/bundle-mac`, it will upload debug symbols to Sentry if you have a `$SENTRY_AUTH_TOKEN` set. I happen to have one set, so this script was trying to generate and upload those. Whoops! This change skips the upload entirely if you're running a local install. Release Notes: - N/A --- script/bundle-mac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/bundle-mac b/script/bundle-mac index b559768348bccf4db64f1436e9eb970e1fbde014..c647424d7ee657f6ca3e94c3cb94957fcf50ad98 100755 --- a/script/bundle-mac +++ b/script/bundle-mac @@ -280,7 +280,9 @@ function sign_binary() { } function upload_debug_symbols() { - if [[ -n "${SENTRY_AUTH_TOKEN:-}" ]]; then + if [ "$local_install" = true ]; then + echo "local install; skipping sentry upload." + elif [[ -n "${SENTRY_AUTH_TOKEN:-}" ]]; then echo "Uploading zed debug symbols to sentry..." exe_path="target/${target_triple}/release/Zed" if ! dsymutil --flat "target/${target_triple}/${target_dir}/zed" 2> target/dsymutil.log; then