sublime.sh 654 Bytes
Newer Older
1 2 3
#!/bin/sh

PKGNAME=sublime-text
4
SUPPORTEDARCHES="x86_64 aarch64"
5
VERSION="$2"
6
DESCRIPTION='Sublime Text 4 from the official site'
7
URL="https://www.sublimetext.com/"
8 9 10

. $(dirname $0)/common.sh

11
arch="$(epm print info -a)"
12 13 14 15 16 17 18 19 20 21 22 23
case "$arch" in
    x86_64)
        arch=x64
        ;;
    aarch64)
        arch=arm64
        ;;
    *)
        fatal "$arch arch is not supported"
        ;;
esac

24
PKGURL=$(eget --list --latest https://www.sublimetext.com/download_thanks "sublime_text_build_${VERSION}_$arch.tar.xz")
25

26
install_pack_pkgurl
27 28

echo
29
echo "NOTE: Sublime Text 4 is a proprietary software. We recommend to use open source editors: Codium, VS Code, Atom."