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

Hotfixed cx_freeze packing

This commit is contained in:
Paweł Jastrzębski
2014-01-20 12:07:26 +01:00
parent 991bf5d4a9
commit 237ef728e1
3 changed files with 9 additions and 2 deletions

View File

@@ -37,8 +37,9 @@ if platform == "darwin":
CFBundleDocumentTypes=[
dict(
CFBundleTypeExtensions=['cbz', 'cbr', 'cb7', 'zip', 'rar', '7z', 'pdf'],
CFBundleTypeName='Comics',
CFBundleTypeIconFile='comic2ebook.icns',
CFBundleTypeRole='Viewer',
CFBundleTypeRole='Editor',
)
],
LSMinimumSystemVersion='10.8.0',
@@ -51,13 +52,19 @@ if platform == "darwin":
)
)
elif platform == "win32":
import platform
from cx_Freeze import setup, Executable
if platform.architecture()[0] == '64bit':
library = 'libEGL64.dll'
else:
library = 'libEGL32.dll'
base = "Win32GUI"
extra_options = dict(
options={"build_exe": {"include_files": ['LICENSE.txt',
['other/UnRAR.exe', 'UnRAR.exe'],
['other/7za.exe', '7za.exe'],
['other/Additional-LICENSE.txt', 'Additional-LICENSE.txt']
['other/Additional-LICENSE.txt', 'Additional-LICENSE.txt'],
['other/' + library, 'libEGL.dll']
], "compressed": True,
"excludes": ['tkinter']}},
executables=[Executable(MAIN,