build: update spec file to use proper pathex and datas paths (#895)

* build: add "src" to pathex.

Instead of having to pre-install tagstudio, this will have PyInstaller directly build it from source.

* build: be more selective about the data files.

Since PyInstaller builds from source now there is no need to manually add it.

---------

Co-authored-by: Léonard <Leeooonaard@gmail.com>
This commit is contained in:
Leonard2
2025-03-31 08:34:01 +08:00
committed by GitHub
parent e3b2eaf96a
commit 27fb54ed65

View File

@@ -23,11 +23,17 @@ elif system == "Darwin":
icon = "src/tagstudio/resources/icon.icns"
datafiles = [
("src/tagstudio/qt/*.json", "tagstudio/qt"),
("src/tagstudio/qt/*.qrc", "tagstudio/qt"),
("src/tagstudio/resources", "tagstudio/resources"),
]
a = Analysis(
["src/tagstudio/main.py"],
pathex=[],
pathex=["src"],
binaries=[],
datas=[("src/tagstudio", "tagstudio")],
datas=datafiles,
hiddenimports=[],
hookspath=[],
hooksconfig={},