Commit 6b2a3dd6 authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

epm play: add zed (autored by @pechenovv) (eterbug #17578)

parent b5a354f9
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
URL="$4"
. $(dirname $0)/common.sh
VERSION=$(echo "$URL" | grep -oP 'v\K[0-9]+\.[0-9]+\.[0-9]+')
[ -n "$VERSION" ] || fatal "Can't get package version"
PKGNAME=$PRODUCT-$VERSION
mkdir -p opt/$PRODUCT
mkdir -p usr/
erc unpack $TAR || fatal
mv zed.app/* opt/$PRODUCT/
chmod 755 opt/$PRODUCT/libexec/zed-editor
mv opt/$PRODUCT/share usr/
cat <<EOF >$PKGNAME.tar.eepm.yaml
name: $PRODUCT
group: Editors
license: GPL-3.0 and AGPL-3.0 and Apache-2.0
url: https://zed.dev/
summary: High-performance, multiplayer code editor
description: High-performance, multiplayer code editor
EOF
erc pack $PKGNAME.tar opt usr || fatal
return_tar $PKGNAME.tar
#!/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
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=zed
PRODUCTDIR=/opt/$PRODUCT
. $(dirname $0)/common.sh
add_bin_link_command $PRODUCT $PRODUCTDIR/bin/$PRODUCT
add_libs_requires
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment