mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-04 21:01:36 +00:00
only use add_lib.py on onedir
This commit is contained in:
@@ -21,7 +21,9 @@ hiddenimports = [
|
|||||||
'gam.gamlib.yubikey',
|
'gam.gamlib.yubikey',
|
||||||
]
|
]
|
||||||
|
|
||||||
print(f"datas before analysis:\n{datas}")
|
runtime_hooks = []
|
||||||
|
if getenv('PYINSTALLER_BUILD_ONEDIR') == 'yes':
|
||||||
|
runtime_hooks.append('add_lib.py')
|
||||||
a = Analysis(
|
a = Analysis(
|
||||||
['gam/__main__.py'],
|
['gam/__main__.py'],
|
||||||
pathex=[],
|
pathex=[],
|
||||||
@@ -30,7 +32,7 @@ a = Analysis(
|
|||||||
hiddenimports=hiddenimports,
|
hiddenimports=hiddenimports,
|
||||||
hookspath=[],
|
hookspath=[],
|
||||||
hooksconfig={},
|
hooksconfig={},
|
||||||
runtime_hooks=['add_lib.py'],
|
runtime_hooks=runtime_hooks,
|
||||||
excludes=[],
|
excludes=[],
|
||||||
win_no_prefer_redirects=False,
|
win_no_prefer_redirects=False,
|
||||||
win_private_assemblies=False,
|
win_private_assemblies=False,
|
||||||
|
|||||||
Reference in New Issue
Block a user