Update linux binary expectations (#12622)
Fixes #12585 This changes the expectations for installed binaries on linux based on work that @jirutka has done for Alpine. In particular, we now put the cli in place as `bin/zed` and the zed binary as `libexec/zed-editor`, and assume that packagers do the same. cc @someone13574 Release notes: - N/A --------- Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
c7d56302d2
commit
27beb9e697
8 changed files with 65 additions and 35 deletions
|
@ -80,7 +80,12 @@ linux() {
|
|||
mkdir -p "$HOME/.local/bin" "$HOME/.local/share/applications"
|
||||
|
||||
# Link the binary
|
||||
ln -sf ~/.local/zed$suffix.app/bin/cli "$HOME/.local/bin/zed"
|
||||
if [ -f ~/.local/zed$suffix.app/bin/zed ]; then
|
||||
ln -sf ~/.local/zed$suffix.app/bin/zed "$HOME/.local/bin/zed"
|
||||
else
|
||||
# support for versions before 0.139.x.
|
||||
ln -sf ~/.local/zed$suffix.app/bin/cli "$HOME/.local/bin/zed"
|
||||
fi
|
||||
|
||||
# Copy .desktop file
|
||||
desktop_file_path="$HOME/.local/share/applications/${appid}.desktop"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue