mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 17:27:39 +02:00
Setup location for compiled shaders
This commit is contained in:
@@ -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')
|
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')
|
shell_integration_dir = os.path.join(kitty_base_dir, 'shell-integration')
|
||||||
fonts_dir = os.path.join(kitty_base_dir, 'fonts')
|
fonts_dir = os.path.join(kitty_base_dir, 'fonts')
|
||||||
|
shaders_dir = os.path.join(kitty_base_dir, 'shaders')
|
||||||
try:
|
try:
|
||||||
shell_path = os.environ.get('SHELL') or pwd.getpwuid(os.geteuid()).pw_shell or '/bin/sh'
|
shell_path = os.environ.get('SHELL') or pwd.getpwuid(os.geteuid()).pw_shell or '/bin/sh'
|
||||||
except KeyError:
|
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.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('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('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())
|
allowed_extensions = frozenset('py glsl so'.split())
|
||||||
|
|
||||||
def src_ignore(parent: str, entries: Iterable[str]) -> List[str]:
|
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',
|
'linux-package', 'kitty.app', 'asan-launcher',
|
||||||
'kitty-profile') # no fonts as that is not generated by build
|
'kitty-profile') # no fonts as that is not generated by build
|
||||||
if not for_cross_compile:
|
if not for_cross_compile:
|
||||||
safe_remove('docs/generated')
|
safe_remove('docs/generated', 'shaders')
|
||||||
clean_launcher_dir('kitty/launcher')
|
clean_launcher_dir('kitty/launcher')
|
||||||
|
|
||||||
def excluded(root: str, d: str) -> bool:
|
def excluded(root: str, d: str) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user