Add a check that tic works as expected
Apparently on FreeBSD it exits with no errors but fails to write the compiled terminfo file.
This commit is contained in:
parent
9af3081f45
commit
1b2a1a1e77
2
setup.py
2
setup.py
@ -599,6 +599,8 @@ def package(args, for_bundle=False, sh_launcher=False):
|
|||||||
odir = os.path.join(x, 'terminfo')
|
odir = os.path.join(x, 'terminfo')
|
||||||
safe_makedirs(odir)
|
safe_makedirs(odir)
|
||||||
subprocess.check_call(['tic', '-x', '-o' + odir, 'terminfo/kitty.terminfo'])
|
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('__main__.py', libdir)
|
||||||
shutil.copy2('logo/kitty.rgba', os.path.join(libdir, 'logo'))
|
shutil.copy2('logo/kitty.rgba', os.path.join(libdir, 'logo'))
|
||||||
shutil.copy2('logo/beam-cursor.png', os.path.join(libdir, 'logo'))
|
shutil.copy2('logo/beam-cursor.png', os.path.join(libdir, 'logo'))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user