fix(build): Clean prior qt/ file before build

Since calls without pyqrcc5 may result in a broken file, clean prior
qt/ file before calling pyqrcc5.  This makes troubleshooting
pyqrcc5 issues more straightforward.

Fix #1103
This commit is contained in:
Andrew Senetar 2023-04-27 01:36:32 -05:00
parent a257dbf0d5
commit 10405ad063
Signed by: arsenetar
GPG Key ID: C63300DCE48AB2F1
1 changed files with 1 additions and 0 deletions

View File

@ -129,6 +129,7 @@ def build_normal():
print("Building localizations")
print("Building Qt stuff")
Path("qt", "").unlink(missing_ok=True)
print_and_do("pyrcc5 {} > {}".format(Path("qt", "dg.qrc"), Path("qt", "")))
fix_qt_resource_file(Path("qt", ""))