Make generation script sort the resources.

This will avoid unnecessary modification of the qrc file
just because of random unsorted order.
This commit is contained in:
Matthieu Gautier 2022-03-04 16:09:00 +01:00
parent 42feaa9ac5
commit ecad664bdf

View File

@ -34,7 +34,7 @@ qresource.tail = "\n"
json_files = translation_dir.glob("*.json")
node = None
for json in translation_dir.glob("*.json"):
for json in sorted(translation_dir.glob("*.json")):
if node is not None:
node.tail += " " * 8
node = ET.SubElement(qresource, "file")