From cbf87df551ac44569839d766f0fb085999e614ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Thu, 10 Oct 2013 17:07:44 +0200 Subject: [PATCH] OSX: File association --- setup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.py b/setup.py index a72f319..0ff8dd8 100644 --- a/setup.py +++ b/setup.py @@ -32,6 +32,13 @@ if platform == "darwin": CFBundleExecutable=NAME, CFBundleIdentifier='com.github.ciromattia.kcc', CFBundleSignature='dplt', + CFBundleDocumentTypes=[ + dict( + CFBundleTypeExtensions=['.cbz', '.cbr', '.cb7', '.zip', '.rar', '.7z', '.pdf'], + CFBundleTypeIconFile='comic2ebook.icns', + CFBundleTypeRole='Viewer', + ) + ], NSHumanReadableCopyright='ISC License (ISCL)' ) )