1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2024-12-21 10:59:03 +00:00

fix(build): Clean prior qt/dg_rc.py file before build

Since calls without pyqrcc5 may result in a broken file, clean prior
qt/gg_rc.py 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

View File

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