simplenote.sh 709 Bytes
Newer Older
1 2 3 4
#!/bin/sh

PKGNAME=Simplenote-linux
SUPPORTEDARCHES="x86_64 aarch64 armhf"
5
VERSION="$2"
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
DESCRIPTION='A Simplenote React client packaged in Electron.'
URL="https://github.com/Automattic/simplenote-electron"

. $(dirname $0)/common.sh

warn_version_is_not_supported

case "$(epm print info -a)" in
    x86_64)
        arch="x86_64" ;;
    aarch64)
        arch="arm64" ;;
    armhf)
        arch="armv7l" ;;
esac

22
if [ "$VERSION" = "*" ] ; then
23
    PKGURL=$(get_github_url "https://github.com/Automattic/simplenote-electron/" "$PKGNAME-.$VERSION-$arch.AppImage")
24 25 26
else
    PKGURL="https://github.com/Automattic/simplenote-electron/releases/download/v$VERSION/$PKGNAME-$VERSION-$arch.AppImage"
fi
27 28

install_pkgurl