#!/bin/shPKGNAME=zedSUPPORTEDARCHES="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.sharch="$(epm print info -a)"case"$arch"inx86_64)arch=x86_64;; aarch64)arch=aarch64;;*) fatal "$arch arch is not supported";;esacif["$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"fiinstall_pack_pkgurl