view deploy/osx/deploy.sh @ 248:011312e59e44

Startup fixes: * Check that Hg works before open-or-stat, and only open-or-stat if tests successful * Make multichoicedialog for open always reopen with the same choice as last time (vital when an open action is aborted and user has to enter details again) * Offer to create full path to target dir for clone if parent doesn't exist
author Chris Cannam
date Tue, 11 Jan 2011 13:56:48 +0000
parents 41ae9544a255
children f649f6066e4d
line wrap: on
line source
#!/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"