diff --git a/contrib/build-wine/deterministic.spec b/contrib/build-wine/deterministic.spec index 0c8196b4c..76399ffab 100644 --- a/contrib/build-wine/deterministic.spec +++ b/contrib/build-wine/deterministic.spec @@ -1,6 +1,6 @@ # -*- mode: python -*- -from PyInstaller.utils.hooks import collect_data_files, collect_submodules, collect_dynamic_libs +from PyInstaller.utils.hooks import collect_data_files, collect_submodules, collect_dynamic_libs, copy_metadata import sys, os @@ -44,6 +44,10 @@ datas += collect_data_files('safetlib') datas += collect_data_files('ckcc') datas += collect_data_files('bitbox02') +# some deps rely on importlib metadata +datas += copy_metadata('slip10') # from trezor->slip10 + + # We don't put these files in to actually include them in the script but to make the Analysis method scan them for imports a = Analysis([f"{PROJECT_ROOT}/{MAIN_SCRIPT}", f"{PROJECT_ROOT}/{PYPKG}/gui/qt/main_window.py", diff --git a/contrib/osx/osx.spec b/contrib/osx/osx.spec index e6501b395..c3472883e 100644 --- a/contrib/osx/osx.spec +++ b/contrib/osx/osx.spec @@ -47,6 +47,10 @@ datas += collect_data_files('safetlib') datas += collect_data_files('ckcc') datas += collect_data_files('bitbox02') +# some deps rely on importlib metadata +datas += copy_metadata('slip10') # from trezor->slip10 + + # We don't put these files in to actually include them in the script but to make the Analysis method scan them for imports a = Analysis([f"{PROJECT_ROOT}/{MAIN_SCRIPT}", f"{PROJECT_ROOT}/{PYPKG}/gui/qt/main_window.py",