mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 03:16:58 +00:00
Add create_dmg.sh script to create .dmg packages.
This commit is contained in:
parent
1c24de00a8
commit
ba58d839df
22
misc/create_dmg.sh
Normal file
22
misc/create_dmg.sh
Normal 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
24
misc/macosx/Info.plist
Executable 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
BIN
misc/macosx/aseprite.icns
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user