Fix install linux (#43205)

Closes: #42726

Release Notes:

- Fix ./script/install-linux for installing a development version of Zed
on Linux
This commit is contained in:
Conrad Irwin
2025-11-21 09:12:19 -07:00
committed by GitHub
parent 3c69e5c46b
commit 9b823616dd

View File

@@ -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