at main 24 lines 776 B view raw
1#!/bin/bash 2# NOTE: I feel like this is a particularly brittle installer... 3# At least it stands as a reminder of how I installed it once 4# Refer also to: https://github.com/kovidgoyal/kitty/issues/4042 5set -e 6cd $(dirname $0) 7if arch | grep -q 'arm'; then 8 ./python 9 if [ "$(uname)" = 'Darwin' ]; then 10 ./brew 11 brew install librsync 12 brew install harfbuzz 13 brew install lcms2 14 fi 15 cd ~/.local 16 if [ ! -d kitty ]; then 17 git clone https://github.com/kovidgoyal/kitty 18 fi 19 cd kitty 20 LDFLAGS=-L/opt/homebrew/lib python3 setup.py kitty.app --extra-include-dirs /opt/homebrew/Cellar/librsync/2.3.2/include 21 ln -s ./launcher/kitty ../bin/ 22else 23 curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin 24fi