mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 17:56:30 +00:00
Updated OSX installer
This commit is contained in:
BIN
icons/WizardOSX.png
Normal file
BIN
icons/WizardOSX.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 328 KiB |
10
setup.json
Normal file
10
setup.json
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"title": "Kindle Comic Converter",
|
||||||
|
"icon": "icons/comic2ebook.icns",
|
||||||
|
"background": "icons/WizardOSX.png",
|
||||||
|
"icon-size": 160,
|
||||||
|
"contents": [
|
||||||
|
{ "x": 180, "y": 300, "type": "file", "path": "dist/Kindle Comic Converter.app" },
|
||||||
|
{ "x": 520, "y": 300, "type": "link", "path": "/Applications" }
|
||||||
|
]
|
||||||
|
}
|
||||||
15
setup.py
15
setup.py
@@ -24,7 +24,7 @@ extra_options = {}
|
|||||||
|
|
||||||
if platform == 'darwin':
|
if platform == 'darwin':
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
from os import chmod, makedirs
|
from os import chmod, makedirs, system
|
||||||
from shutil import copyfile
|
from shutil import copyfile
|
||||||
extra_options = dict(
|
extra_options = dict(
|
||||||
setup_requires=['py2app'],
|
setup_requires=['py2app'],
|
||||||
@@ -36,7 +36,7 @@ if platform == 'darwin':
|
|||||||
includes=['sip', 'PyQt5.QtPrintSupport'],
|
includes=['sip', 'PyQt5.QtPrintSupport'],
|
||||||
resources=['LICENSE.txt', 'other/qt.conf', 'other/Additional-LICENSE.txt', 'other/unrar', 'other/7za'],
|
resources=['LICENSE.txt', 'other/qt.conf', 'other/Additional-LICENSE.txt', 'other/unrar', 'other/7za'],
|
||||||
plist=dict(
|
plist=dict(
|
||||||
CFBundleName=NAME,
|
CFBundleName='Kindle Comic Converter',
|
||||||
CFBundleShortVersionString=VERSION,
|
CFBundleShortVersionString=VERSION,
|
||||||
CFBundleGetInfoString=NAME + ' ' + VERSION +
|
CFBundleGetInfoString=NAME + ' ' + VERSION +
|
||||||
', written 2012-2015 by Ciro Mattia Gonano and Pawel Jastrzebski',
|
', written 2012-2015 by Ciro Mattia Gonano and Pawel Jastrzebski',
|
||||||
@@ -49,7 +49,7 @@ if platform == 'darwin':
|
|||||||
CFBundleTypeRole='Editor',
|
CFBundleTypeRole='Editor',
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
LSMinimumSystemVersion='10.8.0',
|
LSMinimumSystemVersion='10.10.0',
|
||||||
LSEnvironment=dict(
|
LSEnvironment=dict(
|
||||||
PATH='./../Resources:/usr/local/bin:/usr/bin:/bin'
|
PATH='./../Resources:/usr/local/bin:/usr/bin:/bin'
|
||||||
),
|
),
|
||||||
@@ -154,7 +154,8 @@ setup(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if platform == 'darwin':
|
if platform == 'darwin':
|
||||||
makedirs('dist/' + NAME + '.app/Contents/PlugIns/platforms', exist_ok=True)
|
makedirs('dist/Kindle Comic Converter.app/Contents/PlugIns/platforms', exist_ok=True)
|
||||||
copyfile('other/libqcocoa.dylib', 'dist/' + NAME + '.app/Contents/PlugIns/platforms/libqcocoa.dylib')
|
copyfile('other/libqcocoa.dylib', 'dist/Kindle Comic Converter.app/Contents/PlugIns/platforms/libqcocoa.dylib')
|
||||||
chmod('dist/' + NAME + '.app/Contents/Resources/unrar', 0o777)
|
chmod('dist/Kindle Comic Converter.app/Contents/Resources/unrar', 0o777)
|
||||||
chmod('dist/' + NAME + '.app/Contents/Resources/7za', 0o777)
|
chmod('dist/Kindle Comic Converter.app/Contents/Resources/7za', 0o777)
|
||||||
|
system('appdmg setup.json KindleComicConverter_osx_' + VERSION + '.dmg')
|
||||||
|
|||||||
Reference in New Issue
Block a user