about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaweł Jastrzębski <[email protected]>2013-06-13 14:33:51 +0200
committerPaweł Jastrzębski <[email protected]>2013-06-13 14:33:51 +0200
commite570e25b24e4042e4a77e9f8c28b4b53a665e2dd (patch)
treeaf0fab38c95a9f144359fa3cd576f1c1f03cf116
parentNot using Pixmaps outside GUI thread anymore - Part 2 (diff)
downloadkcc-e570e25b24e4042e4a77e9f8c28b4b53a665e2dd.tar.gz
kcc-e570e25b24e4042e4a77e9f8c28b4b53a665e2dd.tar.bz2
kcc-e570e25b24e4042e4a77e9f8c28b4b53a665e2dd.zip
cx_Freeze Linux support
-rw-r--r--icons/comic2ebook.pngbin0 -> 73100 bytes
-rw-r--r--setup.py20
2 files changed, 15 insertions, 5 deletions
diff --git a/icons/comic2ebook.png b/icons/comic2ebook.png
new file mode 100644
index 0000000..13585d9
--- /dev/null
+++ b/icons/comic2ebook.png
Binary files differdiff --git a/setup.py b/setup.py
index 9f5286b..c79c95d 100644
--- a/setup.py
+++ b/setup.py
@@ -1,11 +1,14 @@
 """
 cx_Freeze build script for KCC.
 
-Usage (Mac OS X):
-    python setup.py bdist_mac
-
 Usage (Windows):
     python setup.py build
+
+Usage (Linux):
+    python setup.py build
+
+Usage (OS X):
+    python setup.py bdist_mac
 """
 from sys import platform
 from cx_Freeze import setup, Executable
@@ -40,7 +43,14 @@ elif platform == "win32":
                                 appendScriptToLibrary=False,
                                 compress=True)])
 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(
     name=NAME,
@@ -51,6 +61,6 @@ setup(
     license="ISC License (ISCL)",
     keywords="kindle comic mobipocket mobi cbz cbr manga",
     url="http://github.com/ciromattia/kcc",
-    packages=['KCC'], requires=['PIL'],
+    packages=['kcc'], requires=['PIL'],
     **extra_options
 )
\ No newline at end of file