Commit a31ac847 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add pulsar

parent eae9e701
#!/bin/sh
PKGNAME=pulsar
SUPPORTEDARCHES="x86_64 aarch64"
VERSION="$2"
DESCRIPTION="A Community-led Hyper-Hackable Text Editor from the official site"
URL="https://pulsar-edit.dev/"
. $(dirname $0)/common.sh
if [ "$VERSION" = "*" ] ; then
VERSION="$(get_github_tag https://github.com/pulsar-edit/pulsar/)"
fi
arch=$(epm print info -a)
case $arch in
aarch64)
PKGURL="https://github.com/pulsar-edit/pulsar/releases/download/v${VERSION}/ARM.Linux.pulsar_${VERSION}_arm64.deb"
;;
x86_64)
PKGURL="https://github.com/pulsar-edit/pulsar/releases/download/v${VERSION}/Linux.pulsar_${VERSION}_amd64.deb"
;;
*)
fatal "Unsupported arch $arch"
;;
esac
install_pkgurl
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=pulsar
PRODUCTDIR=/opt/Pulsar
. $(dirname $0)/common-chromium-browser.sh
add_electron_deps
add_unirequires coreutils findutils grep sed /usr/bin/git /usr/bin/node /usr/bin/npm /usr/bin/npx util-linux which xprop python3
install_file $PRODUCTDIR/resources/pulsar.sh /usr/bin/$PRODUCT
chmod a+x $BUILDROOT/usr/bin/$PRODUCT
add_bin_link_command ppm $PRODUCTDIR/resources/app/ppm/bin/apm
# replace embedded xdg-open
for EMBDIR in $PRODUCTDIR/resources/app/ppm/node_modules/open/xdg-open ; do
echo "Removing $BUILDROOT$EMBDIR ..."
rm $BUILDROOT$EMBDIR
ln -s /usr/bin/$(basename $EMBDIR) $BUILDROOT$EMBDIR
done
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