From 935028b69a48a7ed7af00f1225413a87a8f14a2d Mon Sep 17 00:00:00 2001 From: TrigamDev Date: Sat, 12 Sep 2026 12:14:10 -0400 Subject: [PATCH] fix: include renderers in pyinstaller build --- scripts/tagstudio.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/tagstudio.spec b/scripts/tagstudio.spec index ee709ce72..ed4cb92f2 100755 --- a/scripts/tagstudio.spec +++ b/scripts/tagstudio.spec @@ -13,6 +13,7 @@ from tomllib import load from PyInstaller.building.api import COLLECT, EXE, PYZ from PyInstaller.building.build_main import Analysis from PyInstaller.building.osx import BUNDLE +from PyInstaller.utils.hooks import collect_submodules parser = ArgumentParser() # HACK: Without this, the script will fail if empty arguments are passed. @@ -45,7 +46,7 @@ a = Analysis( pathex=[], binaries=[], datas=datafiles, - hiddenimports=[], + hiddenimports=collect_submodules("tagstudio.previews.renderers"), hookspath=[], hooksconfig={}, excludes=[],