From ede7656f02c55aecc60b7277783c9fa8ef1c5bef Mon Sep 17 00:00:00 2001 From: Mikayla Date: Sat, 18 Nov 2023 10:46:35 -0800 Subject: [PATCH] please work --- Cargo.lock | 3 +-- crates/journal2/Cargo.toml | 4 ++-- crates/zed2/Cargo.toml | 2 +- script/bundle | 6 ++++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fc045354f9..4dcaf7a8e3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4538,7 +4538,7 @@ dependencies = [ "anyhow", "chrono", "dirs 4.0.0", - "editor", + "editor2", "gpui2", "log", "schemars", @@ -11625,7 +11625,6 @@ dependencies = [ "isahc", "journal2", "language2", - "language_tools", "lazy_static", "libc", "log", diff --git a/crates/journal2/Cargo.toml b/crates/journal2/Cargo.toml index 72da3deb69..ce307948ad 100644 --- a/crates/journal2/Cargo.toml +++ b/crates/journal2/Cargo.toml @@ -9,7 +9,7 @@ path = "src/journal2.rs" doctest = false [dependencies] -editor = { path = "../editor" } +editor = { package = "editor2", path = "../editor2" } gpui = { package = "gpui2", path = "../gpui2" } util = { path = "../util" } workspace2 = { path = "../workspace2" } @@ -24,4 +24,4 @@ log.workspace = true shellexpand = "2.1.0" [dev-dependencies] -editor = { path = "../editor", features = ["test-support"] } +editor = { package="editor2", path = "../editor2", features = ["test-support"] } diff --git a/crates/zed2/Cargo.toml b/crates/zed2/Cargo.toml index 087af56170..6b9169e65a 100644 --- a/crates/zed2/Cargo.toml +++ b/crates/zed2/Cargo.toml @@ -48,7 +48,7 @@ language = { package = "language2", path = "../language2" } # language_selector = { path = "../language_selector" } lsp = { package = "lsp2", path = "../lsp2" } menu = { package = "menu2", path = "../menu2" } -language_tools = { path = "../language_tools" } +# language_tools = { path = "../language_tools" } node_runtime = { path = "../node_runtime" } # assistant = { path = "../assistant" } # outline = { path = "../outline" } diff --git a/script/bundle b/script/bundle index 19505a05d8..bec4fe2080 100755 --- a/script/bundle +++ b/script/bundle @@ -112,13 +112,15 @@ mv Cargo.toml.backup Cargo.toml popd echo "Bundled ${app_path}" +zed_app_name=$(basename "${app_path}") + if [ "$local_arch" = false ]; then echo "Creating fat binaries" lipo \ -create \ - target/{x86_64-apple-darwin,aarch64-apple-darwin}/${target_dir}/Zed \ + target/{x86_64-apple-darwin,aarch64-apple-darwin}/${target_dir}/$zed_app_name \ -output \ - "${app_path}/Contents/MacOS/zed" + "${app_path}/Contents/MacOS/${zed_crate}" lipo \ -create \ target/{x86_64-apple-darwin,aarch64-apple-darwin}/${target_dir}/cli \