1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-12 17:26:23 +00:00

Update build environment

This commit is contained in:
Paweł Jastrzębski
2017-01-21 22:21:58 +01:00
parent aea7c0fafb
commit ee042ef98d
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@@ -14,3 +14,4 @@ setup.bat
setup.sh
kindlecomicconverter/sentry.py
build/
.python-version

View File

@@ -38,8 +38,8 @@ class BuildBinaryCommand(distutils.cmd.Command):
def run(self):
if sys.platform == 'darwin':
if os.path.isfile('KCC.spec'):
os.system('pyinstaller KCC.spec')
if os.path.isfile('Kindle Comic Converter.spec'):
os.system('pyinstaller "Kindle Comic Converter.spec"')
else:
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')