Skip to content
Snippets Groups Projects
Commit 5c9cf2f8 authored by Boman Romain's avatar Boman Romain
Browse files

fix installer

parent b79f9e2c
No related branches found
No related tags found
1 merge request!2Extractors
Pipeline #44187 passed
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# BUILD DIST: # BUILD DIST:
# load environment # load environment
# pyinstaller --noconfirm fossils.spec # pyinstaller --noconfirm fossils-win.spec
block_cipher = None block_cipher = None
...@@ -63,13 +63,29 @@ exe = EXE( ...@@ -63,13 +63,29 @@ exe = EXE(
entitlements_file=None, entitlements_file=None,
icon='gui/icons/fossils.ico', icon='gui/icons/fossils.ico',
) )
coll = COLLECT(
exe, # when using VBox + mesa drivers installed on c:\Python310\python.exe,
a.binaries, # mesa dlls are copied into the installer which makes
a.zipfiles, # gmsh display crash at runtime.
a.datas, # => we manually remove the libraries related to openGL (they are not present when built outside a vbox)
strip=False, # see https://stackoverflow.com/questions/58097858/how-to-exclude-opengl32sw-dll-from-pyqt5-library-when-using-pyinstaller
upx=False, # works well but slower runtime to_keep = []
upx_exclude=[], to_exclude = {'opengl32.dll', 'libglapi.dll', 'libgallium_wgl.dll'}
name='fossils', for (dest, source, kind) in a.binaries:
) if os.path.split(dest)[1].lower() in to_exclude:
print(f'removing {source}')
continue
to_keep.append((dest, source, kind))
a.binaries = to_keep
if 1:
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=False, # works well but slower runtime
upx_exclude=[],
name='fossils',
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment