comparison deploy/osx/deploy.sh @ 232:41ae9544a255

* Update Mac deployment stuff
author Chris Cannam
date Thu, 06 Jan 2011 15:33:52 +0000
parents
children f649f6066e4d
comparison
equal deleted inserted replaced
231:6c5a06da0ab9 232:41ae9544a255
1 #!/bin/bash
2
3 # Execute this from the top-level directory of the project (the one
4 # that contains the .app bundle).
5
6 app=EasyMercurial
7
8 version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h`
9 bundleVersion="$version".0
10
11 echo
12 echo "Writing version $bundleVersion in to bundle."
13 echo "(This should be a three-part number: major.minor.point)"
14
15 perl -p -e "s/EASYHG_VERSION/$bundleVersion/" deploy/osx/Info.plist \
16 > "$app".app/Contents/Info.plist
17
18 echo "Done: check $app.app for sanity please"
19
20 echo
21 echo "Making dmg..."
22
23 hdiutil create -srcfolder "$app".app "$app"-"$version".dmg -volname "$app"-"$version"
24
25 echo "Done"