1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

Start to work on py2exe/py2app ready code.

This commit is contained in:
Ciro Mattia Gonano
2012-12-17 10:45:24 +01:00
parent 59ea7a00d8
commit dd90ab5908
5 changed files with 123 additions and 70 deletions

View File

@@ -21,7 +21,7 @@ VERSION="1.2.0"
IDENTIFIER="com.github.ciromattia.kcc"
EXENAME="KindleComicConverter"
APP = ['kcc/comic2ebook.py']
APP = ['kcc.py']
DATA_FILES = []
OPTIONS = { 'argv_emulation': True,
'iconfile': 'resources/comic2ebook.icns',
@@ -36,20 +36,10 @@ if sys.platform == 'darwin':
plist=dict(
CFBundleName = NAME,
CFBundleShortVersionString = VERSION,
CFBundleGetInfoString = NAME + " " + VERSION,
CFBundleGetInfoString = NAME + " " + VERSION + ", written 2012 by Ciro Mattia Gonano",
CFBundleExecutable = EXENAME,
CFBundleIdentifier = IDENTIFIER,
CFBundleDocumentTypes = dict(
CFBundleTypeExtensions=["zip","rar","cbz","cbr"],
CFBundleTypeName="Comics",
CFBundleTypeRole="Editor",
LSItemContentTypes = [
"public.plain-text",
"public.text",
"public.data",
"com.apple.application-bundle"
]
)
CFBundleSignature = 'dplt'
)
)
)
@@ -69,5 +59,14 @@ setup(
name=NAME,
app=APP,
data_files=DATA_FILES,
classifiers=[
# make sure to use :: Python *and* :: Python :: 3 so
# that pypi can list the package on the python 3 page
'Programming Language :: Python',
'Programming Language :: Python :: 3'
],
packages=['kcc'],
# make sure to add custom_fixers to the MANIFEST.in
include_package_data=True,
**extra_options
)