about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaweł Jastrzębski <pawelj@iosphe.re>2015-11-04 20:41:48 +0100
committerPaweł Jastrzębski <pawelj@iosphe.re>2015-11-04 20:41:48 +0100
commitb2e58127cb1c81a411836b0d48b7a97aa4672f72 (patch)
tree464c98a20a58499218f9a6961d44c19d8bf05208
parentFixed Panel View placement (diff)
downloadkcc-b2e58127cb1c81a411836b0d48b7a97aa4672f72.tar.gz
kcc-b2e58127cb1c81a411836b0d48b7a97aa4672f72.tar.bz2
kcc-b2e58127cb1c81a411836b0d48b7a97aa4672f72.zip
Disabled UPX to decrease startup time
-rw-r--r--Dockerfile2
-rwxr-xr-xsetup.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 7b369af..de115f6 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,7 +12,7 @@ RUN useradd -ms /bin/bash kcc && chown -R kcc:kcc /app
 
 USER kcc
 WORKDIR /app
-RUN pyinstaller -F -s kcc.py
+RUN pyinstaller -F -s --noupx kcc.py
 RUN mkdir -p dist/usr/bin dist/usr/share/applications dist/usr/share/doc/kindlecomicconverter dist/usr/share/kindlecomicconverter dist/usr/share/lintian/overrides
 RUN mv dist/kcc dist/usr/bin
 RUN cp icons/comic2ebook.png dist/usr/share/kindlecomicconverter
diff --git a/setup.py b/setup.py
index 57260b0..35c6dce 100755
--- a/setup.py
+++ b/setup.py
@@ -38,7 +38,7 @@ class BuildBinaryCommand(distutils.cmd.Command):
 
     def run(self):
         if sys.platform == 'darwin':
-            os.system('pyinstaller -y -F -i icons/comic2ebook.icns -n "Kindle Comic Converter" -w -s kcc.py')
+            os.system('pyinstaller -y -F -i icons/comic2ebook.icns -n "Kindle Comic Converter" -w -s --noupx kcc.py')
             shutil.copy('other/osx/7za', 'dist/Kindle Comic Converter.app/Contents/Resources')
             shutil.copy('other/osx/unrar', 'dist/Kindle Comic Converter.app/Contents/Resources')
             shutil.copy('other/osx/Info.plist', 'dist/Kindle Comic Converter.app/Contents')
@@ -51,7 +51,7 @@ class BuildBinaryCommand(distutils.cmd.Command):
             os.system('appdmg kcc.json dist/KindleComicConverter_osx_' + VERSION + '.dmg')
             exit(0)
         elif sys.platform == 'win32':
-            os.system('pyinstaller -y -F -i icons\comic2ebook.ico -n KCC -w kcc.py')
+            os.system('pyinstaller -y -F -i icons\comic2ebook.ico -n KCC -w --noupx kcc.py')
             if os.path.isfile('setup.bat'):
                 os.system('setup.bat ' + VERSION)
             exit(0)