Mercurial > hg > easyhg
annotate deploy/osx/deploy.sh @ 363:f89e50d748ed feature_93
Enable Push button whenever the repo is non-empty, even when there is no remote location -- ask for remote location when it is pressed.
Also change "Change Remote..." to "Set Remote..." to be consistent with this new usage
author | Chris Cannam |
---|---|
date | Thu, 17 Mar 2011 17:48:18 +0000 |
parents | aa852b477e4d |
children | ce4d06d87a39 |
rev | line source |
---|---|
Chris@232 | 1 #!/bin/bash |
Chris@232 | 2 |
Chris@232 | 3 # Execute this from the top-level directory of the project (the one |
Chris@232 | 4 # that contains the .app bundle). |
Chris@232 | 5 |
Chris@232 | 6 app=EasyMercurial |
Chris@232 | 7 |
Chris@232 | 8 version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h` |
Chris@260 | 9 case "$version" in |
Chris@260 | 10 [0-9].[0-9]) bundleVersion="$version".0 ;; |
Chris@260 | 11 [0-9].[0-9].[0-9]) bundleVersion="$version" ;; |
Chris@260 | 12 *) echo "Error: Version $version is neither two- nor three-part number" ;; |
Chris@260 | 13 esac |
Chris@232 | 14 |
Chris@232 | 15 echo |
Chris@232 | 16 echo "Writing version $bundleVersion in to bundle." |
Chris@232 | 17 echo "(This should be a three-part number: major.minor.point)" |
Chris@232 | 18 |
Chris@232 | 19 perl -p -e "s/EASYHG_VERSION/$bundleVersion/" deploy/osx/Info.plist \ |
Chris@232 | 20 > "$app".app/Contents/Info.plist |
Chris@232 | 21 |
Chris@335 | 22 echo "Done: check $app.app/Contents/Info.plist for sanity please" |
Chris@232 | 23 |
Chris@335 | 24 bash deploy/osx/paths.sh "$app" |
Chris@256 | 25 |
Chris@256 | 26 echo |
Chris@232 | 27 echo "Making dmg..." |
Chris@232 | 28 |
Chris@335 | 29 mkdir "$app"-"$version" && |
Chris@335 | 30 ln -s /Applications "$app"-"$version"/Applications && |
Chris@335 | 31 cp -rp "$app".app "$app"-"$version"/ && |
Chris@335 | 32 hdiutil create -srcfolder "$app"-"$version" "$app"-"$version".dmg -volname "$app"-"$version" && |
Chris@335 | 33 rm -r "$app"-"$version" |
Chris@232 | 34 |
Chris@232 | 35 echo "Done" |