diff --git a/Info.plist b/Info.plist index 72ce070d5..0483e4645 100644 --- a/Info.plist +++ b/Info.plist @@ -1,9 +1,13 @@ - + + + - - + + + + CFBundleDevelopmentRegion English @@ -98,7 +102,7 @@ CFBundleSignature ???? CFBundleVersion - BLARG! + 0.06 CFBundleHelpBookFolder Help CFBundleHelpBookName @@ -116,3 +120,5 @@ + + diff --git a/Scripts/build_nightly.rb b/Scripts/build_nightly.rb index 13c93f729..863c5f629 100755 --- a/Scripts/build_nightly.rb +++ b/Scripts/build_nightly.rb @@ -23,15 +23,15 @@ if appcast_revision < latest_revision %x[find . -type d -name build -print0 | xargs -0 rm -r ] #Update the version in the plist - plist = open('info.plist') + plist = open('Info.plist') plistdoc = Document.new(plist) plist.close() version_element = plistdoc.elements["//[. = 'CFBundleVersion']/following-sibling::string"]; - version_element.text = "r#{latest_version}" + version_element.text = "r#{latest_revision}" - newplist = open('info.plist', 'w') - plistdoc.write(newplist, 2) + newplist = open('Info.plist', 'w') + plistdoc.write(newplist, 0) newplist.close() #Build Cog! @@ -68,7 +68,7 @@ if appcast_revision < latest_revision new_item.elements['enclosure'].add_attribute('url', "http://cogx.org/nightly_builds/#{filename}") new_item.elements['enclosure'].add_attribute('length', filesize) new_item.elements['enclosure'].add_attribute('type', 'application/octet-stream') - new_item.elements['enclosure'].add_attribute('version', "r#{latest_revision}") + new_item.elements['enclosure'].add_attribute('sparkle:version', "r#{latest_revision}") appcastdoc.insert_before('//channel/item', new_item) @@ -76,7 +76,7 @@ if appcast_revision < latest_revision appcastdoc.delete_element('//channel/item[position()>5]') new_xml = Tempfile.new('appcast.xml') - appcastdoc.write(new_xml, 2) + appcastdoc.write(new_xml, 0) new_xml.close() appcast.close()