mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-01-28 22:01:24 +00:00
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:
@@ -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={},
|
||||
|
||||
Reference in New Issue
Block a user