mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 09:46:25 +00:00
working py2app setup
This commit is contained in:
@@ -29,6 +29,10 @@ As of v. 1.50, KCC supports subfolders!
|
|||||||
|
|
||||||
## USAGE
|
## USAGE
|
||||||
|
|
||||||
|
### GUI
|
||||||
|
|
||||||
|
Should be pretty self-explanatory, just keep in mind that it's still in development ;)
|
||||||
|
|
||||||
### Standalone `comic2ebook.py` usage:
|
### Standalone `comic2ebook.py` usage:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
31
setup.py
31
setup.py
@@ -17,7 +17,7 @@ import sys
|
|||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
NAME="KindleComicConverter"
|
NAME="KindleComicConverter"
|
||||||
VERSION="1.2.0"
|
VERSION="2.0"
|
||||||
IDENTIFIER="com.github.ciromattia.kcc"
|
IDENTIFIER="com.github.ciromattia.kcc"
|
||||||
EXENAME="KindleComicConverter"
|
EXENAME="KindleComicConverter"
|
||||||
|
|
||||||
@@ -25,18 +25,20 @@ APP = ['kcc.py']
|
|||||||
DATA_FILES = []
|
DATA_FILES = []
|
||||||
OPTIONS = { 'argv_emulation': True,
|
OPTIONS = { 'argv_emulation': True,
|
||||||
'iconfile': 'resources/comic2ebook.icns',
|
'iconfile': 'resources/comic2ebook.icns',
|
||||||
'includes': 'kcc/*.py'}
|
'includes': 'kcc/*.py',
|
||||||
|
'packages': 'PIL'}
|
||||||
|
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
extra_options = dict(
|
extra_options = dict(
|
||||||
setup_requires=['py2app'],
|
setup_requires=['py2app'],
|
||||||
options=dict(
|
options=dict(
|
||||||
py2app=dict(OPTIONS,
|
py2app=dict(OPTIONS,
|
||||||
resources=['LICENSE.txt','resources/Scripts','resources/description.rtfd'],
|
#resources=['LICENSE.txt','resources/Scripts','resources/description.rtfd'],
|
||||||
|
resources=['LICENSE.txt','resources/description.rtfd'],
|
||||||
plist=dict(
|
plist=dict(
|
||||||
CFBundleName = NAME,
|
CFBundleName = NAME,
|
||||||
CFBundleShortVersionString = VERSION,
|
CFBundleShortVersionString = VERSION,
|
||||||
CFBundleGetInfoString = NAME + " " + VERSION + ", written 2012 by Ciro Mattia Gonano",
|
CFBundleGetInfoString = NAME + " " + VERSION + ", written 2012-2013 by Ciro Mattia Gonano",
|
||||||
CFBundleExecutable = EXENAME,
|
CFBundleExecutable = EXENAME,
|
||||||
CFBundleIdentifier = IDENTIFIER,
|
CFBundleIdentifier = IDENTIFIER,
|
||||||
CFBundleSignature = 'dplt'
|
CFBundleSignature = 'dplt'
|
||||||
@@ -59,11 +61,26 @@ setup(
|
|||||||
name=NAME,
|
name=NAME,
|
||||||
app=APP,
|
app=APP,
|
||||||
data_files=DATA_FILES,
|
data_files=DATA_FILES,
|
||||||
|
version=VERSION,
|
||||||
|
author="Ciro Mattia Gonano",
|
||||||
|
author_email="ciromattia@gmail.com",
|
||||||
|
description=("A tool to convert comics (CBR/CBZ/PDFs/image folders) to Mobipocket."),
|
||||||
|
license = "ISC License (ISCL)",
|
||||||
|
keywords = "kindle comic mobipocket mobi cbz cbr manga",
|
||||||
|
url = "http://github.com/ciromattia/kcc",
|
||||||
classifiers=[
|
classifiers=[
|
||||||
# make sure to use :: Python *and* :: Python :: 3 so
|
'Development Status :: 4 - Beta'
|
||||||
# that pypi can list the package on the python 3 page
|
'License :: OSI Approved :: ISC License (ISCL)',
|
||||||
|
'Environment :: Console',
|
||||||
|
'Environment :: MacOS X',
|
||||||
|
'Environment :: Win32 (MS Windows)',
|
||||||
|
'Environment :: X11 Applications',
|
||||||
|
'Intended Audience :: End Users/Desktop',
|
||||||
|
'Operating System :: OS Independent',
|
||||||
'Programming Language :: Python',
|
'Programming Language :: Python',
|
||||||
'Programming Language :: Python :: 3'
|
'Programming Language :: Python :: 3',
|
||||||
|
'Topic :: Multimedia :: Graphics :: Graphics Conversion',
|
||||||
|
'Topic :: Utilities'
|
||||||
],
|
],
|
||||||
packages=['kcc'],
|
packages=['kcc'],
|
||||||
# make sure to add custom_fixers to the MANIFEST.in
|
# make sure to add custom_fixers to the MANIFEST.in
|
||||||
|
|||||||
Reference in New Issue
Block a user