From a3dec643a18a4f05294532ed86f4e575d42a66b1 Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Sat, 28 Dec 2024 10:59:54 -0500 Subject: [PATCH] Fix script/install-linux in non-CI settings (#22465) Closes #22456 Release Notes: - N/A --- script/bundle-linux | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/script/bundle-linux b/script/bundle-linux index 5d41a42b09..5d7f329f4d 100755 --- a/script/bundle-linux +++ b/script/bundle-linux @@ -70,16 +70,18 @@ objcopy --strip-debug "${target_dir}/${target_triple}/release/cli" objcopy --strip-debug "${target_dir}/${remote_server_triple}/release/remote_server" gzip "${target_dir}/${target_triple}/release/zed.dbg" -upload_to_blob_store_public \ - "zed-debug-symbols" \ - "${target_dir}/${target_triple}/release/zed.dbg.gz" \ - "$channel/zed-$version-${target_triple}.dbg.gz" - gzip "${target_dir}/${remote_server_triple}/release/remote_server.dbg" -upload_to_blob_store_public \ - "zed-debug-symbols" \ - "${target_dir}/${remote_server_triple}/release/remote_server.dbg.gz" \ - "$channel/remote_server-$version-${remote_server_triple}.dbg.gz" + +if [[ -n "${DIGITALOCEAN_SPACES_SECRET_KEY}" && -n "${DIGITALOCEAN_SPACES_ACCESS_KEY}" ]]; then + upload_to_blob_store_public \ + "zed-debug-symbols" \ + "${target_dir}/${target_triple}/release/zed.dbg.gz" \ + "$channel/zed-$version-${target_triple}.dbg.gz" + upload_to_blob_store_public \ + "zed-debug-symbols" \ + "${target_dir}/${remote_server_triple}/release/remote_server.dbg.gz" \ + "$channel/remote_server-$version-${remote_server_triple}.dbg.gz" +fi # Ensure that remote_server does not depend on libssl nor libcrypto, as we got rid of these deps. if ldd "${target_dir}/${remote_server_triple}/release/remote_server" | grep -q 'libcrypto\|libssl'; then