<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -19,7 +19,7 @@
 	&lt;key&gt;CFBundleSignature&lt;/key&gt;
 	&lt;string&gt;????&lt;/string&gt;
 	&lt;key&gt;CFBundleVersion&lt;/key&gt;
-	&lt;string&gt;0.3&lt;/string&gt;
+	&lt;string&gt;0.4&lt;/string&gt;
 	&lt;key&gt;NSMainNibFile&lt;/key&gt;
 	&lt;string&gt;MainMenu&lt;/string&gt;
 	&lt;key&gt;NSPrincipalClass&lt;/key&gt;</diff>
      <filename>Info.plist</filename>
    </modified>
    <modified>
      <diff>@@ -104,15 +104,61 @@ def release_notes_content
 end
 
 def upload_files
-  [&quot;#{build_path}/#{build_type}/#{pkg_name}&quot;, &quot;#{build_path}/#{release_notes}&quot;, &quot;#{build_path}/#{appcast_filename}&quot;].each {|file|
+  [pkg, &quot;#{build_path}/#{release_notes}&quot;, &quot;#{build_path}/#{appcast_filename}&quot;].each {|file|
     upload file, upload_path, :roles =&gt; 'file_store', :via =&gt; :scp
   }
 end
 
+def append_git_version
+  # Change this if your path isn&#8217;t here
+  common_git_paths = %w[/usr/local/bin/git /usr/local/git/bin/git /opt/local/bin/git]
+  git_path = &quot;&quot;
+
+  common_git_paths.each do |p|
+    if File.exist?(p)
+      git_path = p
+      break
+    end
+  end
+
+  if git_path == &quot;&quot;
+    puts &quot;Path to git not found&quot;
+    exit
+  end
+
+  command_line = git_path + &quot; rev-parse --short HEAD&quot;
+  sha = `#{command_line}`.chomp
+
+  info_file = &quot;#{build_path}/#{build_type}/#{app_name}.app/Contents/#{File.basename info_plist_path}&quot;
+
+  f = File.open(info_file, &quot;r&quot;).read
+  re = /([\t ]+&lt;key&gt;CFBundleVersion&lt;\/key&gt;\n[\t ]+&lt;string&gt;)(.*?)(&lt;\/string&gt;)/
+  f =~ re
+
+  # Get the version info from the source Info.plist file
+  # If the script has already been run we need to remove the git sha
+  # from the bundle&#8217;s Info.plist.
+  version = $2.sub(/ \([\w]+\)/, &quot;&quot;)
+
+  # Inject the git has into the bundle&#8217;s Info.plist
+  sub = &quot;\\1#{version} (#{sha})\\3&quot;
+  f.gsub!(re, sub)
+  File.open(info_file, &quot;w&quot;) { |file| file.write(f) }
+end
+
 namespace :xcode do
+  desc 'default'
+  task :default do
+    build
+    package
+    feed
+    upload
+  end
+  
   desc &quot;build xcode project&quot;
   task :build do
     local_run &quot;xcodebuild -configuration #{build_type}&quot;
+    #append_git_version
   end
   
   desc &quot;package&quot;</diff>
      <filename>config/deploy.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,21 @@
+&lt;div class='release'&gt;
+
 h1. Release 0.4
 
-* support tab
+Features:
+
+* tab browsing
+* checking update
+
+&lt;/div&gt;
+&lt;div class='release'&gt;
+
+h1. Release 0.3
+
+Features:
+
+* text zooming
+* gem list reloading
+* back/forward
+  
+&lt;/div&gt;
\ No newline at end of file</diff>
      <filename>release_notes.txt</filename>
    </modified>
    <modified>
      <diff>@@ -3,8 +3,9 @@
     &lt;title&gt;Release Notes&lt;/title&gt;
     &lt;style&gt;
     * { font-family: serif;}
-    h1 { font-family: sans-serif; background-color: #ABABFF; padding: 10px;}
+    h1 { font-family: sans-serif; background-color: #ABABFF; padding:10px; font-size:1.2em;margin:0;}
     h1 span { font-size: 75%; font-weight: normal; float: right;}
+    div.release {-webkit-border-radius: 5px; border: 1px solid #000;padding:10px;margin:10px 0;}
     &lt;/style&gt;
   &lt;/head&gt;
   &lt;body&gt;</diff>
      <filename>release_notes_template.html.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>eef72b9982cdc976266da962e6db90387fc8ec79</id>
    </parent>
  </parents>
  <author>
    <name>Robin Lu</name>
    <email>iamawalrus@gmail.com</email>
  </author>
  <url>http://github.com/robin/goo/commit/1dea70e032005c366dbe303c1ef0fc93c4f8b045</url>
  <id>1dea70e032005c366dbe303c1ef0fc93c4f8b045</id>
  <committed-date>2009-09-22T08:09:04-07:00</committed-date>
  <authored-date>2009-09-22T08:09:04-07:00</authored-date>
  <message>0.4</message>
  <tree>dbb9872918bc570dafa963b1aff1bc5afd3a1524</tree>
  <committer>
    <name>Robin Lu</name>
    <email>iamawalrus@gmail.com</email>
  </committer>
</commit>
