mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-07-02 05:45:00 +00:00
Setup location for compiled shaders
This commit is contained in:
parent
c801efdd03
commit
ab59a7f72c
2 changed files with 3 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
3
setup.py
3
setup.py
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue