mirror of
https://github.com/ciromattia/kcc
synced 2025-12-12 17:26:23 +00:00
cx_Freeze Linux support
This commit is contained in:
BIN
icons/comic2ebook.png
Normal file
BIN
icons/comic2ebook.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 71 KiB |
20
setup.py
20
setup.py
@@ -1,11 +1,14 @@
|
|||||||
"""
|
"""
|
||||||
cx_Freeze build script for KCC.
|
cx_Freeze build script for KCC.
|
||||||
|
|
||||||
Usage (Mac OS X):
|
|
||||||
python setup.py bdist_mac
|
|
||||||
|
|
||||||
Usage (Windows):
|
Usage (Windows):
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
|
||||||
|
Usage (Linux):
|
||||||
|
python setup.py build
|
||||||
|
|
||||||
|
Usage (OS X):
|
||||||
|
python setup.py bdist_mac
|
||||||
"""
|
"""
|
||||||
from sys import platform
|
from sys import platform
|
||||||
from cx_Freeze import setup, Executable
|
from cx_Freeze import setup, Executable
|
||||||
@@ -40,7 +43,14 @@ elif platform == "win32":
|
|||||||
appendScriptToLibrary=False,
|
appendScriptToLibrary=False,
|
||||||
compress=True)])
|
compress=True)])
|
||||||
else:
|
else:
|
||||||
exit(0)
|
extra_options = dict(
|
||||||
|
options={"build_exe": {"include_files": includefiles, "excludes": excludes, "compressed": True}},
|
||||||
|
executables=[Executable(MAIN,
|
||||||
|
icon="icons/comic2ebook.png",
|
||||||
|
copyDependentFiles=True,
|
||||||
|
appendScriptToExe=True,
|
||||||
|
appendScriptToLibrary=False,
|
||||||
|
compress=True)])
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name=NAME,
|
name=NAME,
|
||||||
@@ -51,6 +61,6 @@ setup(
|
|||||||
license="ISC License (ISCL)",
|
license="ISC License (ISCL)",
|
||||||
keywords="kindle comic mobipocket mobi cbz cbr manga",
|
keywords="kindle comic mobipocket mobi cbz cbr manga",
|
||||||
url="http://github.com/ciromattia/kcc",
|
url="http://github.com/ciromattia/kcc",
|
||||||
packages=['KCC'], requires=['PIL'],
|
packages=['kcc'], requires=['PIL'],
|
||||||
**extra_options
|
**extra_options
|
||||||
)
|
)
|
||||||
Reference in New Issue
Block a user