diff --git a/build b/build index 4a11aff..136513d 100644 --- 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 7630e95..9b248ee 100644 --- a/config.sh +++ b/config.sh @@ -31,6 +31,13 @@ osx10Dir="$outputDir/osx10src" win32exe="$win32Dir/love-0.9.1-win32/love.exe" win64exe="$win64Dir/love-0.9.1-win64/love.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="$osx10Dir/love.app/Contents/Resources" +osxFileIcon="LoveDocument.icns" +osxBundleIcon="Love.icns" + # Remove old packages? removeOld=false 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."