mirror of
https://github.com/zoffline/zwift-offline.git
synced 2025-12-12 07:40:36 -08:00
Exclude pkg_resources
Avoids deprecation warning at run-time (https://github.com/pyinstaller/pyinstaller/issues/9149). Exclude Java Temurin binaries (from GitHub windows-latest image).
This commit is contained in:
@@ -14,11 +14,12 @@ a = Analysis(['standalone.py'],
|
|||||||
hiddenimports=[],
|
hiddenimports=[],
|
||||||
hookspath=[],
|
hookspath=[],
|
||||||
runtime_hooks=[],
|
runtime_hooks=[],
|
||||||
excludes=['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter'],
|
excludes=['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter', 'pkg_resources'],
|
||||||
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)
|
||||||
|
a.binaries = [x for x in a.binaries if not 'Java_Temurin' in x[1]]
|
||||||
a.datas += Tree('cdn', prefix='cdn')
|
a.datas += Tree('cdn', prefix='cdn')
|
||||||
pyz = PYZ(a.pure, a.zipped_data,
|
pyz = PYZ(a.pure, a.zipped_data,
|
||||||
cipher=block_cipher)
|
cipher=block_cipher)
|
||||||
@@ -33,7 +34,7 @@ exe = EXE(pyz,
|
|||||||
bootloader_ignore_signals=False,
|
bootloader_ignore_signals=False,
|
||||||
strip=False,
|
strip=False,
|
||||||
upx=True,
|
upx=True,
|
||||||
upx_exclude=['greenlet\\*.pyd', '_uuid.pyd', 'python3.dll', 'api-ms-win-*.dll'],
|
upx_exclude=['greenlet\\*.pyd', '_uuid.pyd', 'python3.dll'],
|
||||||
runtime_tmpdir=None,
|
runtime_tmpdir=None,
|
||||||
console=True )
|
console=True )
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user