Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove existing gzip files before compressing dSYMs (#7818)
Antonio Scandurrac6626627c2ad
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex c3c3d87a979..138fa5808e2 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -125,12 +125,12 @@ jobs:- name: Build Zedrun: cargo build -p zedbundle:- name: Bundle app+ name: Bundle macOS appruns-on:- self-hosted- bundleif: ${{ startsWith(github.ref, 'refs/tags/v') || contains(github.event.pull_request.labels.*.name, 'run-build-dmg') }}- needs: [macos_tests, linux_tests]+ needs: [macos_tests]env:MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}MACOS_CERTIFICATE_PASSWORD: ${{ secrets.MACOS_CERTIFICATE_PASSWORD }}diff --git a/script/bundle b/script/bundleindex 6b8d429e22a..a00e9183e92 100755--- a/script/bundle+++ b/script/bundle@@ -40,7 +40,7 @@ function uploadDsymacl="x-amz-acl:public-read"content_type="application/octet-stream"storage_type="x-amz-storage-class:STANDARD"- string="PUT\n\n${content_type}\n${date}\n${acl}\n${storage_type}\n/${SPACE}/${space_path}/${file_name}"+ string="PUT\n\n${content_type}\n${date}\n${acl}\n${storage_type}\n/${SPACE}/${file_name}"signature=$(echo -en "${string}" | openssl sha1 -hmac "${DIGITALOCEAN_SPACES_SECRET_KEY}" -binary | base64)curl --fail -vv -s -X PUT -T "$file_to_upload" \@@ -141,8 +141,16 @@ if [ "$local_arch" = false ]; thenif [ "$channel" == "nightly" ]; thenversion="$version-$(git rev-parse --short HEAD)"fi++ echo "Removing existing gzipped dSYMs"+ rm -f target/aarch64-apple-darwin/release/Zed.dwarf.gz+ rm -f target/x86_64-apple-darwin/release/Zed.dwarf.gz++ echo "Gzipping dSYMs"gzip target/aarch64-apple-darwin/release/Zed.dwarfgzip target/x86_64-apple-darwin/release/Zed.dwarf++ echo "Uploading dSYMs"uploadDsym target/aarch64-apple-darwin/release/Zed.dwarf.gz "$channel/Zed-$version-aarch64-apple-darwin.dwarf.gz"uploadDsym target/x86_64-apple-darwin/release/Zed.dwarf.gz "$channel/Zed-$version-x86_64-apple-darwin.dwarf.gz"