about summary refs log tree commit diff
path: root/setup.py
diff options
context:
space:
mode:
authorPaweł Jastrzębski <pawelj@iosphe.re>2015-09-05 09:07:57 +0200
committerPaweł Jastrzębski <pawelj@iosphe.re>2015-09-05 09:14:26 +0200
commit477d834a917417b98a3e6ff4f4b34b95894fe226 (patch)
tree7c9402afe14cac9dc3af0179b0c1a8f9c57f1db6 /setup.py
parentImproved error handling (diff)
downloadkcc-477d834a917417b98a3e6ff4f4b34b95894fe226.tar.gz
kcc-477d834a917417b98a3e6ff4f4b34b95894fe226.tar.bz2
kcc-477d834a917417b98a3e6ff4f4b34b95894fe226.zip
Updated OSX installer
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/setup.py b/setup.py
index ede43b3..149e627 100755
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ extra_options = {}
 
 if platform == 'darwin':
     from setuptools import setup
-    from os import chmod, makedirs
+    from os import chmod, makedirs, system
     from shutil import copyfile
     extra_options = dict(
         setup_requires=['py2app'],
@@ -36,7 +36,7 @@ if platform == 'darwin':
                 includes=['sip', 'PyQt5.QtPrintSupport'],
                 resources=['LICENSE.txt', 'other/qt.conf', 'other/Additional-LICENSE.txt', 'other/unrar', 'other/7za'],
                 plist=dict(
-                    CFBundleName=NAME,
+                    CFBundleName='Kindle Comic Converter',
                     CFBundleShortVersionString=VERSION,
                     CFBundleGetInfoString=NAME + ' ' + VERSION +
                     ', written 2012-2015 by Ciro Mattia Gonano and Pawel Jastrzebski',
@@ -49,7 +49,7 @@ if platform == 'darwin':
                             CFBundleTypeRole='Editor',
                         )
                     ],
-                    LSMinimumSystemVersion='10.8.0',
+                    LSMinimumSystemVersion='10.10.0',
                     LSEnvironment=dict(
                         PATH='./../Resources:/usr/local/bin:/usr/bin:/bin'
                     ),
@@ -154,7 +154,8 @@ setup(
 )
 
 if platform == 'darwin':
-    makedirs('dist/' + NAME + '.app/Contents/PlugIns/platforms', exist_ok=True)
-    copyfile('other/libqcocoa.dylib', 'dist/' + NAME + '.app/Contents/PlugIns/platforms/libqcocoa.dylib')
-    chmod('dist/' + NAME + '.app/Contents/Resources/unrar', 0o777)
-    chmod('dist/' + NAME + '.app/Contents/Resources/7za', 0o777)
+    makedirs('dist/Kindle Comic Converter.app/Contents/PlugIns/platforms', exist_ok=True)
+    copyfile('other/libqcocoa.dylib', 'dist/Kindle Comic Converter.app/Contents/PlugIns/platforms/libqcocoa.dylib')
+    chmod('dist/Kindle Comic Converter.app/Contents/Resources/unrar', 0o777)
+    chmod('dist/Kindle Comic Converter.app/Contents/Resources/7za', 0o777)
+    system('appdmg setup.json KindleComicConverter_osx_' + VERSION + '.dmg')