diff --git a/misc/create_dmg.sh b/misc/create_dmg.sh new file mode 100644 index 000000000..52579d777 --- /dev/null +++ b/misc/create_dmg.sh @@ -0,0 +1,22 @@ +#! /bin/sh + +dir="`pwd`" +version=$(cat ../config.h | grep VERSION | sed -e 's/.*\"\(.*\)\"/\1/g') +distdir=ASEPRITE_$version + +if [ ! -f $distdir.dmg ] ; then + cd "$dir/.." + mkdir "$dir/$distdir" + mkdir "$dir/$distdir/aseprite.app" + mkdir "$dir/$distdir/aseprite.app/Contents" + mkdir "$dir/$distdir/aseprite.app/Contents/MacOS" + mkdir "$dir/$distdir/aseprite.app/Contents/Resources" + cp -R LICENSE.txt docs "$dir/$distdir" + cp -R aseprite "$dir/$distdir/aseprite.app/Contents/MacOS" + cp -R "$dir/macosx/Info.plist" "$dir/$distdir/aseprite.app/Contents" + cp -R data "$dir/macosx/aseprite.icns" "$dir/$distdir/aseprite.app/Contents/Resources" + cd "$dir" + + hdiutil create "$distdir.dmg" -srcfolder "$distdir" + rm -fr $distdir +fi diff --git a/misc/macosx/Info.plist b/misc/macosx/Info.plist new file mode 100755 index 000000000..8cbcf780c --- /dev/null +++ b/misc/macosx/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDisplayName + ASEPRITE + CFBundleExecutable + aseprite + CFBundleIdentifier + org.aseprite.aseprite + CFBundleName + aseprite + CFBundlePackageType + APPL + CFBundleInfoDictionaryVersion + 6.0 + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1.0 + CFBundleIconFile + aseprite.icns + + diff --git a/misc/macosx/aseprite.icns b/misc/macosx/aseprite.icns new file mode 100755 index 000000000..787df93e1 Binary files /dev/null and b/misc/macosx/aseprite.icns differ