mirror of
https://github.com/ciromattia/kcc
synced 2026-07-02 19:15:28 +00:00
Hotfixed cx_freeze packing
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -37,8 +37,9 @@ if platform == "darwin":
|
|||||||
CFBundleDocumentTypes=[
|
CFBundleDocumentTypes=[
|
||||||
dict(
|
dict(
|
||||||
CFBundleTypeExtensions=['cbz', 'cbr', 'cb7', 'zip', 'rar', '7z', 'pdf'],
|
CFBundleTypeExtensions=['cbz', 'cbr', 'cb7', 'zip', 'rar', '7z', 'pdf'],
|
||||||
|
CFBundleTypeName='Comics',
|
||||||
CFBundleTypeIconFile='comic2ebook.icns',
|
CFBundleTypeIconFile='comic2ebook.icns',
|
||||||
CFBundleTypeRole='Viewer',
|
CFBundleTypeRole='Editor',
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
LSMinimumSystemVersion='10.8.0',
|
LSMinimumSystemVersion='10.8.0',
|
||||||
@@ -51,13 +52,19 @@ if platform == "darwin":
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
elif platform == "win32":
|
elif platform == "win32":
|
||||||
|
import platform
|
||||||
from cx_Freeze import setup, Executable
|
from cx_Freeze import setup, Executable
|
||||||
|
if platform.architecture()[0] == '64bit':
|
||||||
|
library = 'libEGL64.dll'
|
||||||
|
else:
|
||||||
|
library = 'libEGL32.dll'
|
||||||
base = "Win32GUI"
|
base = "Win32GUI"
|
||||||
extra_options = dict(
|
extra_options = dict(
|
||||||
options={"build_exe": {"include_files": ['LICENSE.txt',
|
options={"build_exe": {"include_files": ['LICENSE.txt',
|
||||||
['other/UnRAR.exe', 'UnRAR.exe'],
|
['other/UnRAR.exe', 'UnRAR.exe'],
|
||||||
['other/7za.exe', '7za.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,
|
], "compressed": True,
|
||||||
"excludes": ['tkinter']}},
|
"excludes": ['tkinter']}},
|
||||||
executables=[Executable(MAIN,
|
executables=[Executable(MAIN,
|
||||||
|
|||||||
Reference in New Issue
Block a user