mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 12:59:04 +02:00
kitty: fix patch for darwin
This commit is contained in:
parent
046390bf97
commit
4536e3fbf4
|
@ -1,19 +1,21 @@
|
||||||
--- a/setup.py
|
diff -aru a/setup.py b/setup.py
|
||||||
+++ b/setup.py
|
--- a/setup.py 2019-07-29 11:09:32.000000000 -0400
|
||||||
@@ -744,9 +744,15 @@ Categories=System;TerminalEmulator;
|
+++ b/setup.py 2019-07-29 11:11:37.000000000 -0400
|
||||||
if not os.path.exists(logo_dir):
|
@@ -784,9 +784,15 @@
|
||||||
raise SystemExit('The kitty logo has not been generated, you need to run logo/make.py')
|
def create_macos_app_icon(where='Resources'):
|
||||||
subprocess.check_call([
|
logo_dir = os.path.abspath(os.path.join('logo', appname + '.iconset'))
|
||||||
- 'iconutil', '-c', 'icns', logo_dir, '-o',
|
subprocess.check_call([
|
||||||
+ 'png2icns',
|
- 'iconutil', '-c', 'icns', logo_dir, '-o',
|
||||||
os.path.join('Resources', os.path.basename(logo_dir).partition('.')[0] + '.icns')
|
+ 'png2icns',
|
||||||
- ])
|
os.path.join(where, os.path.basename(logo_dir).partition('.')[0] + '.icns')
|
||||||
+ ] + [os.path.join(logo_dir, logo) for logo in (
|
- ])
|
||||||
+ 'icon_128x128.png',
|
+ ] + [os.path.join(logo_dir, logo) for logo in [
|
||||||
+ 'icon_16x16.png',
|
+ 'icon_128x128.png',
|
||||||
+ 'icon_256x256.png',
|
+ 'icon_16x16.png',
|
||||||
+ 'icon_32x32.png',
|
+ 'icon_256x256.png',
|
||||||
+ 'icon_512x512.png',
|
+ 'icon_32x32.png',
|
||||||
+ )])
|
+ 'icon_512x512.png',
|
||||||
# }}}
|
+ ]])
|
||||||
# }}}
|
|
||||||
|
|
||||||
|
def create_minimal_macos_bundle(args, where):
|
||||||
|
|
Loading…
Reference in a new issue