[QGIS Commit] r8429 - trunk/qgis/mac
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Wed May 14 08:54:19 EDT 2008
Author: timlinux
Date: 2008-05-14 08:54:19 -0400 (Wed, 14 May 2008)
New Revision: 8429
Added:
trunk/qgis/mac/3-dmg.sh
Log:
Third alternative mac post build script for building dmg
Added: trunk/qgis/mac/3-dmg.sh
===================================================================
--- trunk/qgis/mac/3-dmg.sh (rev 0)
+++ trunk/qgis/mac/3-dmg.sh 2008-05-14 12:54:19 UTC (rev 8429)
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+#
+# A bash script to create a dmg image file of the
+# final application bundle
+# (c) Tim Sutton 2007
+
+DMGNAME=QGISAlaskaUncompressed.dmg
+COMPRESSEDDMGNAME=QGISAlaska.dmg
+set -x
+
+echo "Removing old dmg if it exists"
+rm ~/Desktop/${DMGNAME}
+rm ~/Desktop/${COMPRESSEDDMGNAME}
+hdiutil create -size 300m -fs HFS+ -volname "QGISAlaska" ~/Desktop/${DMGNAME}
+
+# Mount the disk image
+hdiutil attach ~/Desktop/${DMGNAME}
+
+# Obtain device information
+DEVS=$(hdiutil attach ~/Desktop/${DMGNAME} | cut -f 1)
+DEV=$(echo $DEVS | cut -f 1 -d ' ')
+VOLUME=$(mount |grep ${DEV} | cut -f 3 -d ' ')
+
+# copy in the application bundle
+cp -Rp /Applications/QGISAlaska.app ${VOLUME}/QGISAlaska.app
+
+# copy in background image and folder settings for icon sizes etc
+tar xvfz alaska_extra_dmg_files.tar.gz -C ${VOLUME}
+cp ../LICENSE ${VOLUME}/LICENSE.txt
+
+# Unmount the disk image
+hdiutil detach $DEV
+
+# Convert the disk image to read-only
+hdiutil convert ~/Desktop/${DMGNAME} \
+ -format UDZO -o ~/Desktop/${COMPRESSEDDMGNAME}
+
Property changes on: trunk/qgis/mac/3-dmg.sh
___________________________________________________________________
Name: svn:executable
+ *
More information about the QGIS-commit
mailing list