mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Use libdir_name when bundle gunking on linux
This commit is contained in:
6
setup.py
6
setup.py
@@ -680,7 +680,7 @@ def compile_python(base_path):
|
|||||||
compileall.compile_dir(base_path, **kwargs)
|
compileall.compile_dir(base_path, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
def create_linux_bundle_gunk(ddir):
|
def create_linux_bundle_gunk(ddir, libdir_name):
|
||||||
copy_man_pages(ddir)
|
copy_man_pages(ddir)
|
||||||
copy_html_docs(ddir)
|
copy_html_docs(ddir)
|
||||||
icdir = os.path.join(ddir, 'share', 'icons', 'hicolor', '256x256', 'apps')
|
icdir = os.path.join(ddir, 'share', 'icons', 'hicolor', '256x256', 'apps')
|
||||||
@@ -704,7 +704,7 @@ Categories=System;TerminalEmulator;
|
|||||||
'''
|
'''
|
||||||
)
|
)
|
||||||
with current_dir(ddir):
|
with current_dir(ddir):
|
||||||
in_src_launcher = 'lib/kitty/kitty/launcher/kitty'
|
in_src_launcher = libdir_name + '/kitty/kitty/launcher/kitty'
|
||||||
launcher = 'bin/kitty'
|
launcher = 'bin/kitty'
|
||||||
if os.path.exists(in_src_launcher):
|
if os.path.exists(in_src_launcher):
|
||||||
os.remove(in_src_launcher)
|
os.remove(in_src_launcher)
|
||||||
@@ -819,7 +819,7 @@ def package(args, bundle_type):
|
|||||||
safe_makedirs(launcher_dir)
|
safe_makedirs(launcher_dir)
|
||||||
build_launcher(args, launcher_dir, bundle_type)
|
build_launcher(args, launcher_dir, bundle_type)
|
||||||
if not is_macos:
|
if not is_macos:
|
||||||
create_linux_bundle_gunk(ddir)
|
create_linux_bundle_gunk(ddir, args.libdir_name)
|
||||||
|
|
||||||
if bundle_type.startswith('macos-'):
|
if bundle_type.startswith('macos-'):
|
||||||
create_macos_bundle_gunk(ddir)
|
create_macos_bundle_gunk(ddir)
|
||||||
|
|||||||
Reference in New Issue
Block a user