Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

Commit b062ea8

Browse files
committed
check diricon separately
1 parent ae3eba6 commit b062ea8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scripts/runner/functions.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,13 @@ if [[ "${CONTINUE_SBUILD}" == "YES" ]]; then
456456
cp -fv "${SBUILD_TMPDIR}/${PKG}.metainfo.xml.bak" "${SBUILD_OUTDIR}/${PKG}.metainfo.xml"
457457
fi
458458
fi
459+
find -L "${SBUILD_TMPDIR}" -type f,l -regex '.*\.\(DirIcon\)' |\
460+
awk '{print length, $0}' | sort -n | awk 'NR==1 {print $2}' | xargs -I "{}" rsync -achLv "{}" "${SBUILD_TMPDIR}/${PKG}.DirIcon"
461+
if [[ -s "${SBUILD_TMPDIR}/${PKG}.DirIcon" ]]; then
462+
cp -fv "${SBUILD_TMPDIR}/${PKG}.DirIcon" "${SBUILD_OUTDIR}/.DirIcon"
463+
elif [[ -s "${SBUILD_TMPDIR}/.DirIcon.bak" ]]; then
464+
cp -fv "${SBUILD_TMPDIR}/.DirIcon.bak" "${SBUILD_OUTDIR}/.DirIcon"
465+
fi
459466
find -L "${SBUILD_TMPDIR}" -type f,l -regex '.*\.\(DirIcon\|png\)' \
460467
-not -regex '.*\(favicon\|/\(16x16\|22x22\|24x24\|32x32\|36x36\|48x48\|64x64\|72x72\|96x96\)/\).*' \
461468
| awk '{print length, $0}' | sort -n | awk 'NR==1 {print $2}' | xargs -I "{}" rsync -achLv "{}" "${SBUILD_TMPDIR}/${PKG}.png"

0 commit comments

Comments
 (0)