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.

Fix install linux (#43205)

Conrad Irwin9b823616dd7b
diff --git a/script/install-linux b/script/install-linux
index 72fd8eba2cc..a642ed2e0e4 100755
--- a/script/install-linux
+++ b/script/install-linux
@@ -15,12 +15,8 @@ export ZED_CHANNEL=$(<crates/zed/RELEASE_CHANNEL)
export ZED_UPDATE_EXPLANATION="You need to fetch and rebuild zed in $(pwd)"
script/bundle-linux
-target="linux-$(uname -m)"
+arch="$(uname -m)"
commit=$(git rev-parse HEAD | cut -c 1-7)
-if [[ "$ZED_CHANNEL" == "dev" ]]; then
- archive="zed-${commit}-${target}.tar.gz"
-else
- archive="zed-${target}.tar.gz"
-fi
+archive="zed-linux-${arch}.tar.gz"
export ZED_BUNDLE_PATH="${CARGO_TARGET_DIR:-target}/release/${archive}"
script/install.sh