diff options
author | Paweł Jastrzębski <pawelj@iosphe.re> | 2019-03-07 14:59:04 +0100 |
---|---|---|
committer | Paweł Jastrzębski <pawelj@iosphe.re> | 2019-03-07 16:24:41 +0100 |
commit | a6f9e8425128d5a22143b305c1b933443ec5b46a (patch) | |
tree | 5e4b10f4eb3ceef427b0d6a77197cc7743d60dcc | |
parent | Tweaks for Windows binary (diff) | |
download | kcc-a6f9e8425128d5a22143b305c1b933443ec5b46a.tar.gz kcc-a6f9e8425128d5a22143b305c1b933443ec5b46a.tar.bz2 kcc-a6f9e8425128d5a22143b305c1b933443ec5b46a.zip |
Tweaks for OSX binary
-rwxr-xr-x | kcc.py | 1 | ||||
-rwxr-xr-x[-rw-r--r--] | other/osx/7z | bin | 684784 -> 438824 bytes | |||
-rw-r--r-- | other/osx/7z.so | bin | 2381120 -> 1892312 bytes | |||
-rw-r--r-- | other/osx/Rar.so | bin | 0 -> 92140 bytes | |||
-rwxr-xr-x | setup.py | 2 |
5 files changed, 3 insertions, 0 deletions
diff --git a/kcc.py b/kcc.py index b05e8c1..61a9118 100755 --- a/kcc.py +++ b/kcc.py @@ -29,6 +29,7 @@ if sys.platform.startswith('darwin'): if getattr(sys, 'frozen', False): os.environ['PATH'] = os.path.dirname(os.path.abspath(sys.executable)) + \ '/../Resources:/usr/local/bin:/usr/bin:/bin' + os.chdir(os.path.dirname(os.path.abspath(sys.executable)) + '/../Resources') os.system('defaults write com.kindlecomicconverter.KindleComicConverter ApplePersistenceIgnoreState YES') os.system('defaults write com.kindlecomicconverter.KindleComicConverter NSInitialToolTipDelay -int 1000') else: diff --git a/other/osx/7z b/other/osx/7z index 7e7b90b..e0d826b 100644..100755 --- a/other/osx/7z +++ b/other/osx/7z Binary files differdiff --git a/other/osx/7z.so b/other/osx/7z.so index 80eb496..84d5285 100644 --- a/other/osx/7z.so +++ b/other/osx/7z.so Binary files differdiff --git a/other/osx/Rar.so b/other/osx/Rar.so new file mode 100644 index 0000000..bc21ea1 --- /dev/null +++ b/other/osx/Rar.so Binary files differdiff --git a/setup.py b/setup.py index 7bc5c8d..0868767 100755 --- a/setup.py +++ b/setup.py @@ -37,8 +37,10 @@ class BuildBinaryCommand(distutils.cmd.Command): VERSION = __version__ if sys.platform == 'darwin': os.system('pyinstaller -y -F -i icons/comic2ebook.icns -n "Kindle Comic Converter" -w -s kcc.py') + os.makedirs('dist/Kindle Comic Converter.app/Contents/Resources/Codecs') shutil.copy('other/osx/7z', 'dist/Kindle Comic Converter.app/Contents/Resources') shutil.copy('other/osx/7z.so', 'dist/Kindle Comic Converter.app/Contents/Resources') + shutil.copy('other/osx/Rar.so', 'dist/Kindle Comic Converter.app/Contents/Resources/Codecs') shutil.copy('other/osx/Info.plist', 'dist/Kindle Comic Converter.app/Contents') shutil.copy('LICENSE.txt', 'dist/Kindle Comic Converter.app/Contents/Resources') shutil.copy('other/windows/Additional-LICENSE.txt', 'dist/Kindle Comic Converter.app/Contents/Resources') |