mirror of
https://github.com/ciromattia/kcc
synced 2025-12-26 16:11:48 +00:00
Binary blob cleanup
This commit is contained in:
12
kcc.iss
12
kcc.iss
@@ -28,7 +28,7 @@ WizardSmallImageFile=icons\Wizard-Small.bmp
|
|||||||
UninstallDisplayName={#MyAppName}
|
UninstallDisplayName={#MyAppName}
|
||||||
UninstallDisplayIcon={app}\{#MyAppExeName}
|
UninstallDisplayIcon={app}\{#MyAppExeName}
|
||||||
ChangesAssociations=True
|
ChangesAssociations=True
|
||||||
InfoAfterFile=other\InstallWarning.rtf
|
InfoAfterFile=other\windows\InstallWarning.rtf
|
||||||
SignTool=SignTool /d $q{#MyAppName}$q /du $q{#MyAppURL}$q $f
|
SignTool=SignTool /d $q{#MyAppName}$q /du $q{#MyAppURL}$q $f
|
||||||
MinVersion=0,6.0
|
MinVersion=0,6.0
|
||||||
|
|
||||||
@@ -46,17 +46,17 @@ Name: "CB7association"; Description: "CB7"; GroupDescription: "File associations
|
|||||||
Source: "dist_64\platforms\*"; DestDir: "{app}\platforms\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
Source: "dist_64\platforms\*"; DestDir: "{app}\platforms\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
||||||
Source: "dist_64\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Check: Is64BitInstallMode
|
Source: "dist_64\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Check: Is64BitInstallMode
|
||||||
Source: "dist_64\*.dll"; DestDir: "{app}"; Flags: ignoreversion; Check: Is64BitInstallMode
|
Source: "dist_64\*.dll"; DestDir: "{app}"; Flags: ignoreversion; Check: Is64BitInstallMode
|
||||||
Source: "other\vcredist_x64.exe"; DestDir: "{tmp}"; Flags: ignoreversion deleteafterinstall; Check: Is64BitInstallMode
|
Source: "other\windows\vcredist_x64.exe"; DestDir: "{tmp}"; Flags: ignoreversion deleteafterinstall; Check: Is64BitInstallMode
|
||||||
; x86 files
|
; x86 files
|
||||||
Source: "dist\platforms\*"; DestDir: "{app}\platforms\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
Source: "dist\platforms\*"; DestDir: "{app}\platforms\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
||||||
Source: "dist\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
Source: "dist\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
||||||
Source: "dist\*.dll"; DestDir: "{app}"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
Source: "dist\*.dll"; DestDir: "{app}"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
||||||
Source: "other\vcredist_x86.exe"; DestDir: "{tmp}"; Flags: ignoreversion deleteafterinstall; Check: not Is64BitInstallMode
|
Source: "other\windows\vcredist_x86.exe"; DestDir: "{tmp}"; Flags: ignoreversion deleteafterinstall; Check: not Is64BitInstallMode
|
||||||
; Common files
|
; Common files
|
||||||
Source: "LICENSE.txt"; DestDir: "{app}"; Flags: ignoreversion solidbreak
|
Source: "LICENSE.txt"; DestDir: "{app}"; Flags: ignoreversion solidbreak
|
||||||
Source: "other\Additional-LICENSE.txt"; DestDir: "{app}"; Flags: ignoreversion
|
Source: "other\windows\Additional-LICENSE.txt"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
Source: "other\UnRAR.exe"; DestDir: "{app}"; Flags: ignoreversion
|
Source: "other\windows\UnRAR.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
Source: "other\7za.exe"; DestDir: "{app}"; Flags: ignoreversion
|
Source: "other\windows\7za.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
|
|
||||||
[Icons]
|
[Icons]
|
||||||
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
||||||
|
|||||||
4
kcc.py
4
kcc.py
@@ -27,7 +27,7 @@ if sys.version_info[0] != 3:
|
|||||||
import os
|
import os
|
||||||
if sys.platform.startswith('darwin'):
|
if sys.platform.startswith('darwin'):
|
||||||
if 'RESOURCEPATH' not in os.environ:
|
if 'RESOURCEPATH' not in os.environ:
|
||||||
os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + '/other/:' + os.environ['PATH']
|
os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + '/other/osx/:' + os.environ['PATH']
|
||||||
else:
|
else:
|
||||||
os.environ['PATH'] = './../Resources:/usr/local/bin:/usr/bin:/bin'
|
os.environ['PATH'] = './../Resources:/usr/local/bin:/usr/bin:/bin'
|
||||||
os.system('defaults write com.kindlecomicconverter.KindleComicConverter ApplePersistenceIgnoreState YES')
|
os.system('defaults write com.kindlecomicconverter.KindleComicConverter ApplePersistenceIgnoreState YES')
|
||||||
@@ -45,7 +45,7 @@ elif sys.platform.startswith('win'):
|
|||||||
sys.stdout = FakeSTD()
|
sys.stdout = FakeSTD()
|
||||||
sys.stderr = FakeSTD()
|
sys.stderr = FakeSTD()
|
||||||
else:
|
else:
|
||||||
os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + '/other/;' + os.environ['PATH']
|
os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + '/other/windows/;' + os.environ['PATH']
|
||||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
|
||||||
from kcc.shared import dependencyCheck
|
from kcc.shared import dependencyCheck
|
||||||
|
|||||||
14
setup.py
14
setup.py
@@ -34,7 +34,11 @@ if platform == 'darwin':
|
|||||||
argv_emulation=True,
|
argv_emulation=True,
|
||||||
iconfile='icons/comic2ebook.icns',
|
iconfile='icons/comic2ebook.icns',
|
||||||
includes=['sip', 'PyQt5.QtPrintSupport'],
|
includes=['sip', 'PyQt5.QtPrintSupport'],
|
||||||
resources=['LICENSE.txt', 'other/qt.conf', 'other/Additional-LICENSE.txt', 'other/unrar', 'other/7za'],
|
resources=['LICENSE.txt',
|
||||||
|
'other/osx/qt.conf',
|
||||||
|
'other/osx/Additional-LICENSE.txt',
|
||||||
|
'other/osx/unrar',
|
||||||
|
'other/osx/7za'],
|
||||||
plist=dict(
|
plist=dict(
|
||||||
CFBundleName='Kindle Comic Converter',
|
CFBundleName='Kindle Comic Converter',
|
||||||
CFBundleShortVersionString=VERSION,
|
CFBundleShortVersionString=VERSION,
|
||||||
@@ -70,9 +74,9 @@ elif platform == 'win32':
|
|||||||
additional_files = [('platforms', ['C:\Python34' + suffix +
|
additional_files = [('platforms', ['C:\Python34' + suffix +
|
||||||
'\Lib\site-packages\PyQt5\plugins\platforms\qwindows.dll']),
|
'\Lib\site-packages\PyQt5\plugins\platforms\qwindows.dll']),
|
||||||
('', ['LICENSE.txt',
|
('', ['LICENSE.txt',
|
||||||
'other\\7za.exe',
|
'other\\windows\\7za.exe',
|
||||||
'other\\UnRAR.exe',
|
'other\\windows\\UnRAR.exe',
|
||||||
'other\\Additional-LICENSE.txt',
|
'other\\windows\\Additional-LICENSE.txt',
|
||||||
'C:\Python34' + suffix + '\Lib\site-packages\PyQt5\libGLESv2.dll',
|
'C:\Python34' + suffix + '\Lib\site-packages\PyQt5\libGLESv2.dll',
|
||||||
'C:\Python34' + suffix + '\Lib\site-packages\PyQt5\libEGL.dll'])]
|
'C:\Python34' + suffix + '\Lib\site-packages\PyQt5\libEGL.dll'])]
|
||||||
extra_options = dict(
|
extra_options = dict(
|
||||||
@@ -158,7 +162,7 @@ setup(
|
|||||||
|
|
||||||
if platform == 'darwin':
|
if platform == 'darwin':
|
||||||
makedirs('dist/Kindle Comic Converter.app/Contents/PlugIns/platforms', exist_ok=True)
|
makedirs('dist/Kindle Comic Converter.app/Contents/PlugIns/platforms', exist_ok=True)
|
||||||
copyfile('other/libqcocoa.dylib', 'dist/Kindle Comic Converter.app/Contents/PlugIns/platforms/libqcocoa.dylib')
|
copyfile('other/osx/libqcocoa.dylib', 'dist/Kindle Comic Converter.app/Contents/PlugIns/platforms/libqcocoa.dylib')
|
||||||
chmod('dist/Kindle Comic Converter.app/Contents/Resources/unrar', 0o777)
|
chmod('dist/Kindle Comic Converter.app/Contents/Resources/unrar', 0o777)
|
||||||
chmod('dist/Kindle Comic Converter.app/Contents/Resources/7za', 0o777)
|
chmod('dist/Kindle Comic Converter.app/Contents/Resources/7za', 0o777)
|
||||||
system('appdmg setup.json dist/KindleComicConverter_osx_' + VERSION + '.dmg')
|
system('appdmg setup.json dist/KindleComicConverter_osx_' + VERSION + '.dmg')
|
||||||
|
|||||||
Reference in New Issue
Block a user