Skip to content

Commit

Permalink
Adds missing windows dll
Browse files Browse the repository at this point in the history
  • Loading branch information
domstoppable committed Nov 28, 2024
1 parent b778437 commit 8a531f9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions deployment/pupil_core.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import pathlib
import platform
import sys
from importlib.resources import files
from pathlib import Path

import PyInstaller
from PyInstaller.utils.hooks import collect_all
Expand Down Expand Up @@ -68,10 +69,15 @@ def main():
all_binaries.extend(binaries)
all_hidden_imports.extend(hiddenimports)

runtime_hooks = []
if current_platform == SupportedPlatform.linux:
runtime_hooks = ["runtime_hook_sounddevice.py"]
else:
runtime_hooks = []
runtime_hooks.append("runtime_hook_sounddevice.py")

elif current_platform == SupportedPlatform.windows:
import pyglui

pyglui_lib_path = str(Path(pyglui.__file__).parent) + '.libs'
all_binaries.append((os.path.join(pyglui_lib_path, 'msvcp140.dll'), 'pyglui.libs'))

a = Analysis(
["../pupil_src/main.py"],
Expand Down

0 comments on commit 8a531f9

Please sign in to comment.