Skip to content

Commit

Permalink
Cleanup icdir creation
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Jul 13, 2021
1 parent 0c193c3 commit d55a86e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,13 +908,11 @@ def create_linux_bundle_gunk(ddir: str, libdir_name: str) -> None:
run_tool([make, 'docs'])
copy_man_pages(ddir)
copy_html_docs(ddir)
icdir = os.path.join(ddir, 'share', 'icons', 'hicolor', '256x256', 'apps')
safe_makedirs(icdir)
shutil.copy2('logo/kitty.png', icdir)
for (icdir, ext) in {'256x256': 'png', 'scalable': 'svg'}.items():
icdir = os.path.join(ddir, 'share', 'icons', 'hicolor', icdir, 'apps')
safe_makedirs(icdir)
shutil.copy2(f'logo/kitty.{ext}', icdir)
deskdir = os.path.join(ddir, 'share', 'applications')
icscaldir = os.path.join(ddir, 'share', 'icons', 'hicolor', 'scalable', 'apps')
safe_makedirs(icscaldir)
shutil.copy2('logo/kitty.svg', icscaldir)
safe_makedirs(deskdir)
with open(os.path.join(deskdir, 'kitty.desktop'), 'w') as f:
f.write(
Expand Down

0 comments on commit d55a86e

Please sign in to comment.