Skip to content

Commit

Permalink
Tweaks for OSX binary
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Mar 7, 2019
1 parent 259800e commit a6f9e84
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions kcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
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:
Expand Down
Binary file modified other/osx/7z
100644 → 100755
Binary file not shown.
Binary file modified other/osx/7z.so
Binary file not shown.
Binary file added other/osx/Rar.so
Binary file not shown.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ def run(self):
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')
Expand Down

0 comments on commit a6f9e84

Please sign in to comment.