# HG changeset patch # User Chris Cannam # Date 1294328032 0 # Node ID 41ae9544a2551d6abc17f21688cb7e42591a7c1c # Parent 6c5a06da0ab920a83fc9a614bc77247a43d9f6e8 * Update Mac deployment stuff diff -r 6c5a06da0ab9 -r 41ae9544a255 deploy/osx/Info.plist --- 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 @@ + CFBundlePackageType + APPL + CFBundleName + EasyMercurial + CFBundleExecutable + EasyMercurial CFBundleIconFile easyhg-icon.icns - CFBundlePackageType - APPL - CFBundleGetInfoString - Created by Qt/QMake - CFBundleSignature - ???? + CFBundleIdentifier + org.easymercurial.EasyMercurial + CFBundleShortVersionString + EASYHG_VERSION CFBundleExecutable EasyMercurial - CFBundleIdentifier - com.yourcompany.EasyMercurial - NOTE - This file was generated by Qt/QMake. diff -r 6c5a06da0ab9 -r 41ae9544a255 deploy/osx/deploy.sh --- /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"