Skip to content

Commit

Permalink
Merge pull request #130 from kloptops/main
Browse files Browse the repository at this point in the history
Updated translations, fixed port metadata/images on muOS v12.
  • Loading branch information
kloptops committed May 2, 2024
2 parents 298a215 + 70a2679 commit e817e28
Show file tree
Hide file tree
Showing 12 changed files with 1,981 additions and 1,775 deletions.
3 changes: 3 additions & 0 deletions PortMaster/muos/image_smash.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ if [ -f "/opt/graphicsmagick/activate.sh" ]; then
source /opt/graphicsmagick/activate.sh

find "/mnt/mmc/MUOS/info/catalogue/External - Ports" -type f \( -iname "*.jpg" -o -iname "*.png" \) -exec sh -c 'input="{}"; output="$(echo "$input" | sed "s/\(.*\)\..*/\1/").png"; gm convert "$input" -resize "320x240>" "$output"' \;
elif [ -e "/usr/bin/mogrify" ]; then
find "/mnt/mmc/MUOS/info/catalogue/External - Ports" -type f -iname "*.png" -exec sh -c 'mogrify -verbose -resize "320x240>" -format png "{}"' \;
find "/mnt/mmc/MUOS/info/catalogue/External - Ports" -type f -iname "*.jpg" -exec sh -c 'mogrify -verbose -resize "320x240>" -format png "{}"; rm -v "{}"' \;
fi
4 changes: 3 additions & 1 deletion PortMaster/pylibs/harbourmaster/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,9 @@ def gamelist_add(self, gameinfo_file):
if not gameinfo_file.is_file():
return

if not Path("/opt/graphicsmagick").is_dir():
if not any((
Path("/opt/graphicsmagick").is_dir(),
Path("/usr/bin/magick").is_file())):
return

INFO_CATALOG = Path("/mnt/mmc/MUOS/info/catalogue/External - Ports")
Expand Down

0 comments on commit e817e28

Please sign in to comment.