1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

Tweaked build process

This commit is contained in:
Paweł Jastrzębski
2017-08-20 17:10:28 +02:00
parent 3d3621c6ec
commit 40d1ae63da
3 changed files with 10 additions and 8 deletions

View File

@@ -106,12 +106,14 @@ def removeFromZIP(zipfname, *filenames):
def sanitizeTrace(traceback): def sanitizeTrace(traceback):
return ''.join(format_tb(traceback))\ return ''.join(format_tb(traceback))\
.replace('C:/Users/Pawel/Documents/Projekty/KCC/', '')\ .replace('C:/projects/kcc/', '') \
.replace('C:/Python35/', '')\ .replace('c:/projects/kcc/', '') \
.replace('c:/python35/', '')\ .replace('C:/python36-x64/', '')\
.replace('C:\\Users\\Pawel\\Documents\\Projekty\\KCC\\', '')\ .replace('c:/python36-x64/', '')\
.replace('C:\\Python35\\', '')\ .replace('C:\\projects\\kcc\\', '') \
.replace('c:\\python35\\', '') .replace('c:\\projects\\kcc\\', '') \
.replace('C:\\python36-x64\\', '')\
.replace('c:\\python36-x64\\', '')
def dependencyCheck(level): def dependencyCheck(level):

View File

@@ -55,7 +55,7 @@
<key>LSHasLocalizedDisplayName</key> <key>LSHasLocalizedDisplayName</key>
<false/> <false/>
<key>LSMinimumSystemVersion</key> <key>LSMinimumSystemVersion</key>
<string>10.9.0</string> <string>10.10.0</string>
<key>NSAppleScriptEnabled</key> <key>NSAppleScriptEnabled</key>
<false/> <false/>
<key>NSHumanReadableCopyright</key> <key>NSHumanReadableCopyright</key>

View File

@@ -53,7 +53,7 @@ class BuildBinaryCommand(distutils.cmd.Command):
os.system('setup.bat ' + VERSION) os.system('setup.bat ' + VERSION)
exit(0) exit(0)
else: else:
os.system('pyinstaller -F -s kcc.py') os.system('pyinstaller -y -F kcc.py')
os.system('mkdir -p dist/usr/bin dist/usr/share/applications dist/usr/share/doc/kindlecomicconverter ' os.system('mkdir -p dist/usr/bin dist/usr/share/applications dist/usr/share/doc/kindlecomicconverter '
'dist/usr/share/kindlecomicconverter dist/usr/share/lintian/overrides') 'dist/usr/share/kindlecomicconverter dist/usr/share/lintian/overrides')
os.system('mv dist/kcc dist/usr/bin') os.system('mv dist/kcc dist/usr/bin')