<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BKeeney Briefs &#187; Disk Images</title>
	<atom:link href="http://www.bkeeneybriefs.com/tag/disk-images/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bkeeneybriefs.com</link>
	<description>Software Development Using REALbasic</description>
	<lastBuildDate>Fri, 03 Sep 2010 22:24:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Snow Leopard Disk Image Issues.</title>
		<link>http://www.bkeeneybriefs.com/2009/11/snow-leopard-disk-image-issues/</link>
		<comments>http://www.bkeeneybriefs.com/2009/11/snow-leopard-disk-image-issues/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 21:00:40 +0000</pubDate>
		<dc:creator>Bob Keeney</dc:creator>
				<category><![CDATA[Macintosh]]></category>
		<category><![CDATA[REALbasic]]></category>
		<category><![CDATA[Disk Images]]></category>

		<guid isPermaLink="false">http://www.bkeeneybriefs.com/?p=522</guid>
		<description><![CDATA[I&#8217;m not entirely sure what Apple changed in Snow Leopard but  we quickly discovered that disk images created in Snow Leopard don&#8217;t work the same in Leopard and earlier systems.  When we create our disk images we have something that looks like this: Looks fine in Snow Leopard.  Acts fine in Snow Leopard.  But when [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not entirely sure what Apple changed in Snow Leopard but  we quickly discovered that disk images created in Snow Leopard don&#8217;t work the same in Leopard and earlier systems.  When we create our disk images we have something that looks like this:</p>
<p><img class="alignnone size-medium wp-image-523" title="Disk Image" src="http://www.bkeeneybriefs.com/wp-content/uploads/2009/11/Disk-Image-300x179.png" alt="Disk Image" width="300" height="179" /></p>
<p>Looks fine in Snow Leopard.  Acts fine in Snow Leopard.  But when you take it into Leopard you get a disk image that looks something like this (no background image):</p>
<p><img class="alignnone size-medium wp-image-524" title="SL Disk Image in Leopard" src="http://www.bkeeneybriefs.com/wp-content/uploads/2009/11/SL-Disk-Image-in-Leopard-300x151.png" alt="SL Disk Image in Leopard" width="300" height="151" /></p>
<p>Long time Mac users understand what to do but new Mac users were a little mystified at what to do.  Unfortunately we didn&#8217;t find this out until after a couple of releases, but we did find a solution.</p>
<p>We use a postbuild script to automatically create our disk image.  The bit of code is:</p>
<p style="padding-left: 30px;">hdiutil convert -quiet  -format UDBZ -o &#8220;${IMAGE_NAME}.dmg&#8221; -imagekey zlib-level=9 &#8220;./${IMAGE_NAME}.sparseimage&#8221; \<br />
|| error_exit &#8220;$LINENO: Could not compress the DMG&#8221;</p>
<p>This leaves a sparseimage file laying around and normally we get rid of it.  While running this in Leopard we didn&#8217;t and copied it.  This sparseimage has the proper graphics and works in Snow Leopard so we now use it as our template when doing builds in Snow Leopard.</p>
<p>We changed the script to delete the OLD file on the sparseimage using:</p>
<p style="padding-left: 30px;">rm -rf &#8220;/Volumes/${MOUNTED_DISK_NAME}/Task Timer 4.app/Contents&#8221; \<br />
|| error_exit &#8220;$LINENO: Could not delete old build&#8221;</p>
<p>Then we copy our newly created RB app into the sparse image.</p>
<p style="padding-left: 30px;">rsync -a &#8220;${MAC_OUTPUT}/Task Timer 4.app/&#8221; &#8220;/Volumes/${MOUNTED_DISK_NAME}/Task Timer 4.app/&#8221; \<br />
|| error_exit &#8220;$LINENO: Could not copy into volume&#8221;</p>
<p>So, it&#8217;s kind of pain to do, and it&#8217;s not very efficient but it works.  We are still using RB 2009 R3 because build automation that was released in R4 doesn&#8217;t work for us.</p>
<p>Update:  If you want to see the entire script, there is an article in the Articles section on the ARBP members only site, which is available to any paid membership.</p>
            <script type="text/javascript">  linkscolor = "000000";  highlightscolor = "888888";  backgroundcolor = "FFFFFF";  channel = "none";   </script><script type="text/javascript" src="http://www.addmarx.com/dynamicbookmark_compressed.php"></script><span><a onClick="clickDynamic1(this); return false;" href="http://www.addmarx.com"><img style="padding:0px; margin:0px" src="http://www.bkeeneybriefs.com/wp-content/plugins/addmarx/sharebookmarx.png" border="0"></a></span><span style="position:absolute; z-index:1000001; margin-top:24px; margin-left:-127px; visibility:hidden;"><iframe id="addmarx_empty" scrolling="no" frameborder="0"></iframe></span><p class="addmarx_spacer"></p><!-- Please place the above code into your site where you want to have a bookmark/share/publicize link. Please do not change any of the code aside from the link text or image, or else the code may not work properly.  -->                  ]]></content:encoded>
			<wfw:commentRss>http://www.bkeeneybriefs.com/2009/11/snow-leopard-disk-image-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
