diff --git a/AntaresWebWin.spec b/AntaresWebWin.spec index bb26eda739..9502eaa374 100644 --- a/AntaresWebWin.spec +++ b/AntaresWebWin.spec @@ -10,10 +10,12 @@ migration_files = [str(f) for f in migrations_dir.iterdir() if f.is_file() and f # Specify hidden import tables_files = collect_data_files('tables') -datas = [('./resources', './resources'), ('./alembic', './alembic')] + tables_files +xlsx_files = collect_data_files('xlsxwriter') +datas = [('./resources', './resources'), ('./alembic', './alembic')] + tables_files + xlsx_files tables_module = collect_submodules('tables') -hidden_imports = ['cmath', 'antarest.dbmodel', 'plyer.platforms.win', 'plyer.platforms.win.notification', 'pythonjsonlogger.jsonlogger'] + tables_module +xlsx_module = collect_submodules('xlsxwriter') +hidden_imports = ['cmath', 'antarest.dbmodel', 'plyer.platforms.win', 'plyer.platforms.win.notification', 'pythonjsonlogger.jsonlogger'] + tables_module + xlsx_module antares_web_server_a = Analysis(['antarest/gui.py', 'alembic/env.py'] + migration_files, pathex=[],