Add a linux-package command to help linux packagers create good kitty packages

This commit is contained in:
Kovid Goyal
2017-01-08 12:17:44 +05:30
parent 34c947ba35
commit 50b0f44dff
3 changed files with 49 additions and 3 deletions

View File

@@ -252,6 +252,27 @@ focus
launch emacs
....
== Note for linux packagers
While kitty does use python, it is not a traditional python package, so please do not install it in site-packages.
Instead run,
```
python3 setup.py linux-package
```
This will create the directory `linux-package` containing all the files need to run kitty. kitty can be run using
```
python3 linux-package
```
So simply create a launcher script named `kitty` that does that. You should
also create a second package named kitty-terminfo that installs the file
`linux-package/terminfo/x/xterm-kitty` into `/usr/share/terminfo` for whatever
location your distribution uses for terminfo files. Make the main kitty package
depend on `kitty-terminfo`. This allows users to install the terminfo file on
servers into which they ssh, without needing to install all of kitty.
== Resources on terminal behavior
http://invisible-island.net/xterm/ctlseqs/ctlseqs.html