qt:resources: Sort qrc filenames

Many filesystems (e.g. btrfs, apfs) return results in some internal non-alphabetical ordering, which isn't great for minimizing changes to files
This commit is contained in:
TellowKrinkle 2023-04-24 13:04:52 -05:00 committed by refractionpcsx2
parent 5d37cac4a0
commit caafc87b29
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ IFS="
printf "<RCC>\n"
printf "\t<qresource>\n"
for i in $(find . -not -iname '.*' -not -iname '*.sh' -not -iname '*.qrc' -type f | cut -d'/' -f2-99); do
for i in $(find . -not -iname '.*' -not -iname '*.sh' -not -iname '*.qrc' -type f | cut -d'/' -f2-99 | sort -f); do
printf "\t\t<file>%s</file>\n" "$i"
done
printf "\t</qresource>\n"

View File

@ -1,7 +1,7 @@
<RCC>
<qresource>
<file>icons/applications-system-24.png</file>
<file>icons/AppIcon.png</file>
<file>icons/applications-system-24.png</file>
<file>icons/black/index.theme</file>
<file>icons/black/svg/arrow-left-right-line.svg</file>
<file>icons/black/svg/artboard-2-line.svg</file>