Skip to content

Commit

Permalink
Add a check that tic works as expected
Browse files Browse the repository at this point in the history
Apparently on FreeBSD it exits with no errors but fails to write the
compiled terminfo file.
  • Loading branch information
kovidgoyal committed Jul 31, 2018
1 parent 9af3081 commit 1b2a1a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,8 @@ def package(args, for_bundle=False, sh_launcher=False):
odir = os.path.join(x, 'terminfo')
safe_makedirs(odir)
subprocess.check_call(['tic', '-x', '-o' + odir, 'terminfo/kitty.terminfo'])
if not glob.glob(os.path.join(odir, '*/xterm-kitty')):
raise SystemExit('tic failed to output the compiled kitty terminfo file')
shutil.copy2('__main__.py', libdir)
shutil.copy2('logo/kitty.rgba', os.path.join(libdir, 'logo'))
shutil.copy2('logo/beam-cursor.png', os.path.join(libdir, 'logo'))
Expand Down

0 comments on commit 1b2a1a1

Please sign in to comment.