mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 01:36:27 +00:00
Updated setup
This commit is contained in:
2
kcc.iss
2
kcc.iss
@@ -43,13 +43,11 @@ Name: "CB7association"; Description: "CB7"; GroupDescription: "File associations
|
|||||||
|
|
||||||
[Files]
|
[Files]
|
||||||
; x64 files
|
; x64 files
|
||||||
Source: "dist_64\imageformats\*"; DestDir: "{app}\imageformats\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|
||||||
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\vcredist_x64.exe"; DestDir: "{tmp}"; Flags: ignoreversion deleteafterinstall; Check: Is64BitInstallMode
|
||||||
; x86 files
|
; x86 files
|
||||||
Source: "dist\imageformats\*"; DestDir: "{app}\imageformats\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|
||||||
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
|
||||||
|
|||||||
35
setup.py
35
setup.py
@@ -1,12 +1,12 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
"""
|
"""
|
||||||
cx_Freeze/py2app build script for KCC.
|
py2exe/py2app build script for KCC.
|
||||||
|
|
||||||
Usage (Mac OS X):
|
|
||||||
python setup.py py2app
|
|
||||||
|
|
||||||
Usage (Windows):
|
Usage (Windows):
|
||||||
python setup.py py2exe
|
python setup.py py2exe
|
||||||
|
|
||||||
|
Usage (Mac OS X):
|
||||||
|
python setup.py py2app
|
||||||
"""
|
"""
|
||||||
from sys import platform, version_info
|
from sys import platform, version_info
|
||||||
if version_info[0] != 3:
|
if version_info[0] != 3:
|
||||||
@@ -63,43 +63,22 @@ elif platform == "win32":
|
|||||||
suffix = '_64'
|
suffix = '_64'
|
||||||
else:
|
else:
|
||||||
suffix = ''
|
suffix = ''
|
||||||
additional_files = [('imageformats', ['C:\Python34' + suffix +
|
additional_files = [('platforms', ['C:\Python34' + suffix +
|
||||||
'\Lib\site-packages\PyQt5\plugins\imageformats\qgif.dll',
|
|
||||||
'C:\Python34' + suffix +
|
|
||||||
'\Lib\site-packages\PyQt5\plugins\imageformats\qico.dll',
|
|
||||||
'C:\Python34' + suffix +
|
|
||||||
'\Lib\site-packages\PyQt5\plugins\imageformats\qjpeg.dll',
|
|
||||||
'C:\Python34' + suffix +
|
|
||||||
'\Lib\site-packages\PyQt5\plugins\imageformats\qmng.dll',
|
|
||||||
'C:\Python34' + suffix +
|
|
||||||
'\Lib\site-packages\PyQt5\plugins\imageformats\qsvg.dll',
|
|
||||||
'C:\Python34' + suffix +
|
|
||||||
'\Lib\site-packages\PyQt5\plugins\imageformats\qtga.dll',
|
|
||||||
'C:\Python34' + suffix +
|
|
||||||
'\Lib\site-packages\PyQt5\plugins\imageformats\qtiff.dll',
|
|
||||||
'C:\Python34' + suffix +
|
|
||||||
'\Lib\site-packages\PyQt5\plugins\imageformats\qwbmp.dll']),
|
|
||||||
('platforms', ['C:\Python34' + suffix +
|
|
||||||
'\Lib\site-packages\PyQt5\plugins\platforms\qminimal.dll',
|
|
||||||
'C:\Python34' + suffix +
|
|
||||||
'\Lib\site-packages\PyQt5\plugins\platforms\qoffscreen.dll',
|
|
||||||
'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\\7za.exe',
|
||||||
'other\\UnRAR.exe',
|
'other\\UnRAR.exe',
|
||||||
'other\\Additional-LICENSE.txt',
|
'other\\Additional-LICENSE.txt',
|
||||||
'other\\7za.exe',
|
|
||||||
'C:\Python34' + suffix + '\Lib\site-packages\PyQt5\libEGL.dll'])]
|
'C:\Python34' + suffix + '\Lib\site-packages\PyQt5\libEGL.dll'])]
|
||||||
extra_options = dict(
|
extra_options = dict(
|
||||||
options={'py2exe': {"bundle_files": 2,
|
options={'py2exe': {"bundle_files": 1,
|
||||||
"dll_excludes": ["tcl85.dll", "tk85.dll"],
|
"dll_excludes": ["tcl85.dll", "tk85.dll"],
|
||||||
"dist_dir": "dist" + suffix,
|
"dist_dir": "dist" + suffix,
|
||||||
"compressed": True,
|
"compressed": True,
|
||||||
"includes": ["sip"],
|
"includes": ["sip"],
|
||||||
"excludes": ["tkinter"],
|
"excludes": ["tkinter"],
|
||||||
"optimize": 2}},
|
"optimize": 2}},
|
||||||
windows=[{"script": "kcc.py",
|
windows=[{"script": MAIN,
|
||||||
"dest_base": "KCC",
|
"dest_base": "KCC",
|
||||||
"version": VERSION,
|
"version": VERSION,
|
||||||
"copyright": "Ciro Mattia Gonano, Pawel Jastrzebski © 2014",
|
"copyright": "Ciro Mattia Gonano, Pawel Jastrzebski © 2014",
|
||||||
|
|||||||
Reference in New Issue
Block a user