diff --git a/app/Info.plist b/app/Info.plist index 66e4048d..e9a56571 100644 --- a/app/Info.plist +++ b/app/Info.plist @@ -5,22 +5,26 @@ CFBundleExecutable Moonlight CFBundleGetInfoString - Created by Qt/QMake + Stream games from your NVIDIA GameStream-enabled PC CFBundleIconFile - macos + moonlight CFBundleIdentifier - com.yourcompany.moonlight-qt + com.moonlight-stream.Moonlight + NSHighResolutionCapable + CFBundlePackageType APPL CFBundleSignature ???? LSMinimumSystemVersion 10.10 - NOTE - This file was generated by Qt/QMake. NSPrincipalClass NSApplication NSSupportsAutomaticGraphicsSwitching + CFBundleVersion + 0.0.3 + CFBundleDisplayName + Moonlight diff --git a/app/app.pro b/app/app.pro index d1a8e9fb..4e2ff122 100644 --- a/app/app.pro +++ b/app/app.pro @@ -185,16 +185,15 @@ unix:!macx: { INSTALLS += target desktop icons appdata } - win32 { RC_ICONS = moonlight.ico } - macx { QMAKE_INFO_PLIST = $$PWD/Info.plist - APP_QML_FILES.files = res/macos.icns - APP_QML_FILES.path = Contents/Resources - QMAKE_BUNDLE_DATA += APP_QML_FILES + + APP_BUNDLE_RESOURCES.files = moonlight.icns + APP_BUNDLE_RESOURCES.path = Contents/Resources + QMAKE_BUNDLE_DATA += APP_BUNDLE_RESOURCES } VERSION = 0.0.3 diff --git a/app/moonlight.icns b/app/moonlight.icns new file mode 100644 index 00000000..e2e1abf9 Binary files /dev/null and b/app/moonlight.icns differ diff --git a/app/res/macos.icns b/app/res/macos.icns deleted file mode 100644 index 58d1527e..00000000 Binary files a/app/res/macos.icns and /dev/null differ diff --git a/scripts/svg2icns b/scripts/svg2icns new file mode 100755 index 00000000..7ace8812 --- /dev/null +++ b/scripts/svg2icns @@ -0,0 +1,27 @@ +#!/bin/bash +# https://gist.github.com/zlbruce/883605a635df8d5964bab11ed75e46ad +echo "*** SVG 2 ICNS ***" +if [ $# -ne 1 ]; then + echo "Usage: svg2icns filename.svg" + exit 100 +fi +filename="$1" +name=${filename%.*} +ext=${filename##*.} +echo "processing: $name" +dest="$name".iconset +mkdir "$dest" + +convert -background none -resize '!16x16' "$1" "$dest/icon_16x16.png" +convert -background none -resize '!32x32' "$1" "$dest/icon_16x16@2x.png" +cp "$dest/icon_16x16@2x.png" "$dest/icon_32x32.png" +convert -background none -resize '!64x64' "$1" "$dest/icon_32x32@2x.png" +convert -background none -resize '!128x128' "$1" "$dest/icon_128x128.png" +convert -background none -resize '!256x256' "$1" "$dest/icon_128x128@2x.png" +cp "$dest/icon_128x128@2x.png" "$dest/icon_256x256.png" +convert -background none -resize '!512x512' "$1" "$dest/icon_256x256@2x.png" +cp "$dest/icon_256x256@2x.png" "$dest/icon_512x512.png" +convert -background none -resize '!1024x1024' "$1" "$dest/icon_512x512@2x.png" + +iconutil -c icns "$dest" +rm -R "$dest"