Add create_dmg.sh script to create .dmg packages.

This commit is contained in:
David Capello 2012-05-20 20:54:34 -03:00
parent 1c24de00a8
commit ba58d839df
3 changed files with 46 additions and 0 deletions

22
misc/create_dmg.sh Normal file
View File

@ -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

24
misc/macosx/Info.plist Executable file
View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDisplayName</key>
<string>ASEPRITE</string>
<key>CFBundleExecutable</key>
<string>aseprite</string>
<key>CFBundleIdentifier</key>
<string>org.aseprite.aseprite</string>
<key>CFBundleName</key>
<string>aseprite</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>CFBundleIconFile</key>
<string>aseprite.icns</string>
</dict>
</plist>

BIN
misc/macosx/aseprite.icns Executable file

Binary file not shown.