mirror of
https://github.com/arsenetar/dupeguru.git
synced 2024-11-17 04:39:01 +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:
parent
a257dbf0d5
commit
10405ad063
1
build.py
1
build.py
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user