Merge d2516c355c7dc0c1260c7461f05a4546fa2fbf17 into 6aa728b12a8f6750ac2115635fd070621137d675

This commit is contained in:
Octol1ttle 2025-09-22 09:48:43 +02:00 committed by GitHub
commit 4b29ccc253
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 5 deletions

10
program_info/genicons.sh Executable file → Normal file
View File

@ -47,18 +47,20 @@ if command -v "inkscape" && command -v "iconutil" && command -v "oxipng"; then
mkdir -p "$d"
svg2png ${LAUNCHER_APPID}.bigsur.svg "$d/icon_16x16.png" 16 16
svg2png ${LAUNCHER_APPID}.bigsur.svg "$d/icon_16x16@2.png" 32 32
svg2png ${LAUNCHER_APPID}.bigsur.svg "$d/icon_16x16@2x.png" 32 32
svg2png ${LAUNCHER_APPID}.bigsur.svg "$d/icon_32x32.png" 32 32
svg2png ${LAUNCHER_APPID}.bigsur.svg "$d/icon_32x32@2.png" 64 64
svg2png ${LAUNCHER_APPID}.bigsur.svg "$d/icon_32x32@2x.png" 64 64
svg2png ${LAUNCHER_APPID}.bigsur.svg "$d/icon_128x128.png" 128 128
svg2png ${LAUNCHER_APPID}.bigsur.svg "$d/icon_128x128@2.png" 256 256
svg2png ${LAUNCHER_APPID}.bigsur.svg "$d/icon_128x128@2x.png" 256 256
svg2png ${LAUNCHER_APPID}.bigsur.svg "$d/icon_256x256.png" 256 256
svg2png ${LAUNCHER_APPID}.bigsur.svg "$d/icon_256x256@2.png" 512 512
svg2png ${LAUNCHER_APPID}.bigsur.svg "$d/icon_256x256@2x.png" 512 512
svg2png ${LAUNCHER_APPID}.bigsur.svg "$d/icon_512x512.png" 512 512
svg2png ${LAUNCHER_APPID}.bigsur.svg "$d/icon_512x512@2x.png" 1024 1024
oxipng --opt max --strip all --alpha --interlace 0 "$d/icon_"*".png"
iconutil -c icns "$d"
cp -v "$d/prismlauncher.icns" .
else
echo "ERROR: macOS icons were NOT generated!" >&2
echo "ERROR: requires inkscape, iconutil and oxipng in PATH"

View File

@ -6,7 +6,7 @@ Type=Application
Terminal=false
Exec=@Launcher_APP_BINARY_NAME@ %U
StartupNotify=true
Icon=org.@Launcher_APP_BINARY_NAME@.@Launcher_CommonName@
Icon=@Launcher_AppID@
Categories=Game;ActionGame;AdventureGame;Simulation;PackageManager;
Keywords=game;minecraft;mc;
StartupWMClass=@Launcher_CommonName@