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 0000000..17bb08b Binary files /dev/null and b/icons/icon.icns differ diff --git a/icons/cover design.png b/logos/Itch.io cover.png similarity index 100% rename from icons/cover design.png rename to logos/Itch.io cover.png diff --git a/icons/cover design raw.png b/logos/cover design raw.png similarity index 100% rename from icons/cover design raw.png rename to logos/cover design raw.png diff --git a/icons/cover design raw.xcf b/logos/cover design raw.xcf similarity index 100% rename from icons/cover design raw.xcf rename to logos/cover design raw.xcf diff --git a/scripts/Info.plist-maker.sh b/scripts/Info.plist-maker.sh index a1ebcd3..224fbaf 100644 --- a/scripts/Info.plist-maker.sh +++ b/scripts/Info.plist-maker.sh @@ -14,7 +14,7 @@ echo " 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."