Mercurial > hg > easyhg
changeset 232:41ae9544a255
* Update Mac deployment stuff
author | Chris Cannam |
---|---|
date | Thu, 06 Jan 2011 15:33:52 +0000 |
parents | 6c5a06da0ab9 |
children | 3d276e65a7c3 |
files | deploy/osx/Info.plist deploy/osx/deploy.sh |
diffstat | 2 files changed, 35 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/deploy/osx/Info.plist Thu Jan 06 15:15:43 2011 +0000 +++ b/deploy/osx/Info.plist Thu Jan 06 15:33:52 2011 +0000 @@ -2,19 +2,19 @@ <!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> <plist version="0.9"> <dict> + <key>CFBundlePackageType</key> + <string>APPL</string> + <key>CFBundleName</key> + <string>EasyMercurial</string> + <key>CFBundleExecutable</key> + <string>EasyMercurial</string> <key>CFBundleIconFile</key> <string>easyhg-icon.icns</string> - <key>CFBundlePackageType</key> - <string>APPL</string> - <key>CFBundleGetInfoString</key> - <string>Created by Qt/QMake</string> - <key>CFBundleSignature</key> - <string>????</string> + <key>CFBundleIdentifier</key> + <string>org.easymercurial.EasyMercurial</string> + <key>CFBundleShortVersionString</key> + <string>EASYHG_VERSION</string> <key>CFBundleExecutable</key> <string>EasyMercurial</string> - <key>CFBundleIdentifier</key> - <string>com.yourcompany.EasyMercurial</string> - <key>NOTE</key> - <string>This file was generated by Qt/QMake.</string> </dict> </plist>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/deploy/osx/deploy.sh Thu Jan 06 15:33:52 2011 +0000 @@ -0,0 +1,25 @@ +#!/bin/bash + +# Execute this from the top-level directory of the project (the one +# that contains the .app bundle). + +app=EasyMercurial + +version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h` +bundleVersion="$version".0 + +echo +echo "Writing version $bundleVersion in to bundle." +echo "(This should be a three-part number: major.minor.point)" + +perl -p -e "s/EASYHG_VERSION/$bundleVersion/" deploy/osx/Info.plist \ + > "$app".app/Contents/Info.plist + +echo "Done: check $app.app for sanity please" + +echo +echo "Making dmg..." + +hdiutil create -srcfolder "$app".app "$app"-"$version".dmg -volname "$app"-"$version" + +echo "Done"