BIM: Fixed resource contents

This commit is contained in:
Yorik van Havre
2024-05-06 11:33:45 +02:00
committed by Yorik van Havre
parent 40f33f0f73
commit 0a6ff497de
2 changed files with 3 additions and 3 deletions

View File

@@ -152,8 +152,6 @@
<file>icons/Part_document.svg</file>
<file>icons/Sketch.svg</file>
<file>icons/Tree_Part.svg</file>
<file>icons/banner.png</file>
<file>icons/bimtool.png</file>
<file>icons/preferences-arch.svg</file>
<file>icons/techdraw-ArchView.svg</file>
<file>icons/techdraw-PageDefault.svg</file>

View File

@@ -5,7 +5,9 @@ for subdir in ["icons", "ui", "translations"]:
subpath = os.path.join(cdir, subdir)
for f in sorted(os.listdir(subpath)):
if f not in ["Arch.ts", "BIM.ts"]:
txt += " <file>" + subdir + "/" + f + "</file>\n"
ext = os.path.splitext(f)[1]
if ext.lower() in [".ts", ".qm", ".svg", ".ui"]:
txt += " <file>" + subdir + "/" + f + "</file>\n"
txt += " </qresource>\n</RCC>\n"
with open(os.path.join(cdir, "Arch.qrc"), "w") as resfile:
resfile.write(txt)