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.

Include generate-licenses into bundle-mac script (#22800)

Kirill Bulatoveae88a5c47b6
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f9d322294e2..8dfe3f2f2fb 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -322,9 +322,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- - name: Generate license file
- run: script/generate-licenses
-
- name: Create macOS app bundle
run: script/bundle-mac
diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.yml
index 6e81990db59..cb79181cafa 100644
--- a/.github/workflows/release_nightly.yml
+++ b/.github/workflows/release_nightly.yml
@@ -86,9 +86,6 @@ jobs:
echo "Publishing version: ${version} on release channel nightly"
echo "nightly" > crates/zed/RELEASE_CHANNEL
- - name: Generate license file
- run: script/generate-licenses
-
- name: Create macOS app bundle
run: script/bundle-mac
diff --git a/script/bundle-mac b/script/bundle-mac
index e70aa89097a..61fc534cc7d 100755
--- a/script/bundle-mac
+++ b/script/bundle-mac
@@ -84,6 +84,9 @@ version_info=$(rustc --version --verbose)
host_line=$(echo "$version_info" | grep host)
local_target_triple=${host_line#*: }
+# Generate the licenses first, so they can be baked into the binaries
+script/generate-licenses
+
if [ "$local_arch" = true ]; then
echo "Building for local target only."
cargo build ${build_flag} --package zed --package cli --package remote_server