mirror of
https://github.com/Flowseal/tg-ws-proxy.git
synced 2026-05-22 23:41:44 +03:00
exclude not needed modules
This commit is contained in:
@@ -46,11 +46,25 @@ a = Analysis(
|
|||||||
hookspath=[],
|
hookspath=[],
|
||||||
hooksconfig={},
|
hooksconfig={},
|
||||||
runtime_hooks=[],
|
runtime_hooks=[],
|
||||||
excludes=[],
|
excludes=[
|
||||||
|
'PIL._avif',
|
||||||
|
'PIL._webp',
|
||||||
|
'PIL._imagingtk',
|
||||||
|
],
|
||||||
noarchive=False,
|
noarchive=False,
|
||||||
cipher=block_cipher,
|
cipher=block_cipher,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
_PIL_EXCLUDE_PYDS = {
|
||||||
|
'_avif', '_webp', '_imagingtk',
|
||||||
|
'FpxImagePlugin', 'MicImagePlugin',
|
||||||
|
}
|
||||||
|
a.binaries = [
|
||||||
|
(name, path, typ)
|
||||||
|
for name, path, typ in a.binaries
|
||||||
|
if not any(ex in name for ex in _PIL_EXCLUDE_PYDS)
|
||||||
|
]
|
||||||
|
|
||||||
icon_path = os.path.join(os.path.dirname(SPEC), os.pardir, 'icon.ico')
|
icon_path = os.path.join(os.path.dirname(SPEC), os.pardir, 'icon.ico')
|
||||||
if os.path.exists(icon_path):
|
if os.path.exists(icon_path):
|
||||||
a.datas += [('icon.ico', icon_path, 'DATA')]
|
a.datas += [('icon.ico', icon_path, 'DATA')]
|
||||||
|
|||||||
@@ -25,11 +25,25 @@ a = Analysis(
|
|||||||
hookspath=[],
|
hookspath=[],
|
||||||
hooksconfig={},
|
hooksconfig={},
|
||||||
runtime_hooks=[],
|
runtime_hooks=[],
|
||||||
excludes=[],
|
excludes=[
|
||||||
|
'PIL._avif',
|
||||||
|
'PIL._webp',
|
||||||
|
'PIL._imagingtk',
|
||||||
|
],
|
||||||
noarchive=False,
|
noarchive=False,
|
||||||
cipher=block_cipher,
|
cipher=block_cipher,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
_PIL_EXCLUDE_PYDS = {
|
||||||
|
'_avif', '_webp', '_imagingtk',
|
||||||
|
'FpxImagePlugin', 'MicImagePlugin',
|
||||||
|
}
|
||||||
|
a.binaries = [
|
||||||
|
(name, path, typ)
|
||||||
|
for name, path, typ in a.binaries
|
||||||
|
if not any(ex in name for ex in _PIL_EXCLUDE_PYDS)
|
||||||
|
]
|
||||||
|
|
||||||
icon_path = os.path.join(os.path.dirname(SPEC), os.pardir, 'icon.icns')
|
icon_path = os.path.join(os.path.dirname(SPEC), os.pardir, 'icon.icns')
|
||||||
if not os.path.exists(icon_path):
|
if not os.path.exists(icon_path):
|
||||||
icon_path = None
|
icon_path = None
|
||||||
|
|||||||
@@ -26,13 +26,27 @@ a = Analysis(
|
|||||||
hookspath=[],
|
hookspath=[],
|
||||||
hooksconfig={},
|
hooksconfig={},
|
||||||
runtime_hooks=[],
|
runtime_hooks=[],
|
||||||
excludes=[],
|
excludes=[
|
||||||
|
'PIL._avif',
|
||||||
|
'PIL._webp',
|
||||||
|
'PIL._imagingtk',
|
||||||
|
],
|
||||||
win_no_prefer_redirects=False,
|
win_no_prefer_redirects=False,
|
||||||
win_private_assemblies=False,
|
win_private_assemblies=False,
|
||||||
cipher=block_cipher,
|
cipher=block_cipher,
|
||||||
noarchive=False,
|
noarchive=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
_PIL_EXCLUDE_PYDS = {
|
||||||
|
'_avif', '_webp', '_imagingtk',
|
||||||
|
'FpxImagePlugin', 'MicImagePlugin',
|
||||||
|
}
|
||||||
|
a.binaries = [
|
||||||
|
(name, path, typ)
|
||||||
|
for name, path, typ in a.binaries
|
||||||
|
if not any(ex in name for ex in _PIL_EXCLUDE_PYDS)
|
||||||
|
]
|
||||||
|
|
||||||
icon_path = os.path.join(os.path.dirname(SPEC), os.pardir, 'icon.ico')
|
icon_path = os.path.join(os.path.dirname(SPEC), os.pardir, 'icon.ico')
|
||||||
version_path = os.path.join(os.path.dirname(SPEC), 'version_info.txt')
|
version_path = os.path.join(os.path.dirname(SPEC), 'version_info.txt')
|
||||||
if os.path.exists(icon_path):
|
if os.path.exists(icon_path):
|
||||||
|
|||||||
Reference in New Issue
Block a user