Fixed a couple of nightly bugs.
parent
b6227ecf1d
commit
909789926e
14
Info.plist
14
Info.plist
|
@ -1,9 +1,13 @@
|
||||||
<?xml version='1.0' encoding='UTF-8'?>
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version='1.0'>
|
|
||||||
|
|
||||||
|
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version='1.0'>
|
||||||
<dict>
|
<dict>
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>English</string>
|
<string>English</string>
|
||||||
|
@ -98,7 +102,7 @@
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>BLARG!</string>
|
<string>0.06</string>
|
||||||
<key>CFBundleHelpBookFolder</key>
|
<key>CFBundleHelpBookFolder</key>
|
||||||
<string>Help</string>
|
<string>Help</string>
|
||||||
<key>CFBundleHelpBookName</key>
|
<key>CFBundleHelpBookName</key>
|
||||||
|
@ -116,3 +120,5 @@
|
||||||
</plist>
|
</plist>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -23,15 +23,15 @@ if appcast_revision < latest_revision
|
||||||
%x[find . -type d -name build -print0 | xargs -0 rm -r ]
|
%x[find . -type d -name build -print0 | xargs -0 rm -r ]
|
||||||
|
|
||||||
#Update the version in the plist
|
#Update the version in the plist
|
||||||
plist = open('info.plist')
|
plist = open('Info.plist')
|
||||||
plistdoc = Document.new(plist)
|
plistdoc = Document.new(plist)
|
||||||
plist.close()
|
plist.close()
|
||||||
|
|
||||||
version_element = plistdoc.elements["//[. = 'CFBundleVersion']/following-sibling::string"];
|
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')
|
newplist = open('Info.plist', 'w')
|
||||||
plistdoc.write(newplist, 2)
|
plistdoc.write(newplist, 0)
|
||||||
newplist.close()
|
newplist.close()
|
||||||
|
|
||||||
#Build Cog!
|
#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('url', "http://cogx.org/nightly_builds/#{filename}")
|
||||||
new_item.elements['enclosure'].add_attribute('length', filesize)
|
new_item.elements['enclosure'].add_attribute('length', filesize)
|
||||||
new_item.elements['enclosure'].add_attribute('type', 'application/octet-stream')
|
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)
|
appcastdoc.insert_before('//channel/item', new_item)
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ if appcast_revision < latest_revision
|
||||||
appcastdoc.delete_element('//channel/item[position()>5]')
|
appcastdoc.delete_element('//channel/item[position()>5]')
|
||||||
|
|
||||||
new_xml = Tempfile.new('appcast.xml')
|
new_xml = Tempfile.new('appcast.xml')
|
||||||
appcastdoc.write(new_xml, 2)
|
appcastdoc.write(new_xml, 0)
|
||||||
new_xml.close()
|
new_xml.close()
|
||||||
appcast.close()
|
appcast.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue