From a96d307a8eb78833dae208caad19e1afd6cd16f4 Mon Sep 17 00:00:00 2001 From: Paul Liverman Date: Mon, 9 Feb 2015 11:18:41 -0800 Subject: [PATCH] added custom Mac icon generation --- build | 3 ++ config.sh | 7 +++++ icons/icon.icns | Bin 0 -> 35504 bytes .../Itch.io cover.png | Bin {icons => logos}/cover design raw.png | Bin {icons => logos}/cover design raw.xcf | Bin scripts/Info.plist-maker.sh | 26 ++++++++---------- 7 files changed, 21 insertions(+), 15 deletions(-) create mode 100644 icons/icon.icns rename icons/cover design.png => logos/Itch.io cover.png (100%) rename {icons => logos}/cover design raw.png (100%) rename {icons => logos}/cover design raw.xcf (100%) diff --git a/build b/build index 4a11aff..136513d 100755 --- a/build +++ b/build @@ -136,6 +136,9 @@ cd "$osx10Dir" cp -r ./love.app "./$packageName.app" # Copy in our .love file cp "$outputDir/$packageName-$version.love" "$osx10Dir/$packageName.app/Contents/Resources/$packageName.love" +# Copy in our icons +cp "$osxIconsDirectory/$osxFileIcon" "$osx10Dir/$packageName.app/Contents/Resources/$osxFileIcon" +cp "$osxIconsDirectory/$osxBundleIcon" "$osx10Dir/$packageName.app/Contents/Resources/$osxBundleIcon" # Create an Info.plist and copy it in cd "$originalDir" source "$originalDir/scripts/Info.plist-maker.sh" diff --git a/config.sh b/config.sh index ee2dafc..4a2eb80 100644 --- a/config.sh +++ b/config.sh @@ -31,6 +31,13 @@ osx10Dir="$outputDir/osx10src" win32exe="$outputDir/custom_exes/rgb32.exe" win64exe="$outputDir/custom_exes/rgb64.exe" +# Mac icns files for package icon +# (It's best to just specify the same file for both. +# I don't think both are needed, but I am not very familiar with the Mac system.) +osxIconsDirectory="$(pwd)/icons" +osxFileIcon="icon.icns" +osxBundleIcon="icon.icns" + # Remove old packages? removeOld=false diff --git a/icons/icon.icns b/icons/icon.icns new file mode 100644 index 0000000000000000000000000000000000000000..17bb08b52e2dde66ac5cb924e1bbcfefaae7f404 GIT binary patch literal 35504 zcmeI3U2GFq7J$#p-0|QsC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#^#ZRyk2;h<|4`M8o58(H)a`0i!};Kzk2;?ai)EcJbCVYs zuB@Sa!HNYC*Ss;-1Uv(a`-j7F#Cq-K3YeUg7GDVkyEtpwx`R z)&8K|XAOi4>G%ixQe1cNcrk zUGkgsIAhPn8Ele6{{cZpJ+uFO{0WNPu#@zzE+T@j$dfr{%zR|qBvDu}# zdD-3ekoL#jkL{1gqA*^KkmC(bExPy0geX&-y0fci)M{~zbPn6o`?oh_5IrJgdce1Zy| zNj8di&E2!0 CFBundleTypeIconFile - LoveDocument.icns + $osxFileIcon CFBundleTypeName LÖVE Project CFBundleTypeRole @@ -42,20 +42,17 @@ echo " CFBundleExecutable love CFBundleIconFile - Love.icns - CFBundleIdentifier" > ./tmp/Info.plist - -echo " $identifier + $osxBundleIcon + CFBundleIdentifier + $identifier CFBundleInfoDictionaryVersion 6.0 - CFBundleName" >> ./tmp/Info.plist - -echo " $friendlyPackageName + CFBundleName + $friendlyPackageName CFBundlePackageType APPL - CFBundleShortVersionString" >> ./tmp/Info.plist - -echo " $version + CFBundleShortVersionString + $version CFBundleSignature LoVe DTCompiler @@ -74,12 +71,11 @@ echo " $version 5B1008 LSApplicationCategoryType public.app-category.games - NSHumanReadableCopyright" >> ./tmp/Info.plist - -echo " © $copyrightYear $author + NSHumanReadableCopyright + © $copyrightYear $author NSPrincipalClass NSApplication -" >> ./tmp/Info.plist +" > ./tmp/Info.plist echo " Info.plist generated."