You need to sign in or sign up before continuing.
zed.sh 668 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#!/bin/sh
PKGNAME=zed
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="High-performance, multiplayer code editor from the creators of Atom and Tree-sitter"
URL="https://zed.dev/"

. $(dirname $0)/common.sh

arch="$(epm print info -a)"
case "$arch" in
    x86_64)
        arch=x86_64
        ;;
    aarch64)
        arch=aarch64
        ;;
    *)
        fatal "$arch arch is not supported"
        ;;
esac

if [ "$VERSION" = "*" ] ; then 
	PKGURL=$(get_github_version "https://github.com/zed-industries/zed/" "zed-linux-$arch.tar.gz") 
else 
	PKGURL="https://github.com/zed-industries/zed/releases/download/v$VERSION/zed-linux-$arch.tar.gz" 
fi

install_pack_pkgurl