Setup location for compiled shaders

This commit is contained in:
Kovid Goyal 2026-06-26 15:41:55 +05:30
parent c801efdd03
commit ab59a7f72c
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 1 deletions

View file

@ -156,6 +156,7 @@ logo_png_file = os.path.join(kitty_base_dir, 'logo', 'kitty.png')
beam_cursor_data_file = os.path.join(kitty_base_dir, 'logo', 'beam-cursor.png')
shell_integration_dir = os.path.join(kitty_base_dir, 'shell-integration')
fonts_dir = os.path.join(kitty_base_dir, 'fonts')
shaders_dir = os.path.join(kitty_base_dir, 'shaders')
try:
shell_path = os.environ.get('SHELL') or pwd.getpwuid(os.geteuid()).pw_shell or '/bin/sh'
except KeyError:

View file

@ -1877,6 +1877,7 @@ def package(args: Options, bundle_type: str, do_build_all: bool = True) -> None:
shutil.copy2('logo/beam-cursor@2x.png', os.path.join(libdir, 'logo'))
shutil.copytree('shell-integration', os.path.join(libdir, 'shell-integration'), dirs_exist_ok=True)
shutil.copytree('fonts', os.path.join(libdir, 'fonts'), dirs_exist_ok=True)
shutil.copytree('shaders', os.path.join(libdir, 'shaders'), dirs_exist_ok=True)
allowed_extensions = frozenset('py glsl so'.split())
def src_ignore(parent: str, entries: Iterable[str]) -> List[str]:
@ -1957,7 +1958,7 @@ def clean(for_cross_compile: bool = False) -> None:
'linux-package', 'kitty.app', 'asan-launcher',
'kitty-profile') # no fonts as that is not generated by build
if not for_cross_compile:
safe_remove('docs/generated')
safe_remove('docs/generated', 'shaders')
clean_launcher_dir('kitty/launcher')
def excluded(root: str, d: str) -> bool: