From f64a67941a111fbacbce57de758bf03f907bb243 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sun, 1 Mar 2020 17:59:23 -0800 Subject: [PATCH] Update update_feed.rb script for new version number style --- Scripts/update_feed.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Scripts/update_feed.rb b/Scripts/update_feed.rb index 21e682ac4..604e4aa38 100755 --- a/Scripts/update_feed.rb +++ b/Scripts/update_feed.rb @@ -29,7 +29,7 @@ appcast_enclosure = sortedchannels[0].search('./enclosure').first appcast_url = appcast_enclosure.attribute('url'); appcast_revision = appcast_enclosure.attribute_with_ns('version', sparkle).to_s; appcast_revision_split = appcast_revision.split( /-/ ) -appcast_revision_code = appcast_revision_split[2] +appcast_revision_code = appcast_revision_split[1] appcast_revision_split = appcast_revision_code.split( /g/ ) appcast_revision_code = appcast_revision_split[1] @@ -61,12 +61,12 @@ appcast_revision_code = appcast_revision_split[1] #latest_revision = %x[/usr/local/bin/hg log -r . --template '{latesttag}-{latesttagdistance}-{node|short}'] revision_split = latest_revision.split( /-/ ) -revision_number = revision_split[1] -revision_code = revision_split[2] +revision_number = revision_split[0] +revision_code = revision_split[1] revision_split = revision_code.split( /g/ ) revision_code = revision_split[1] -if appcast_revision < latest_revision +if 1 #appcast_revision < latest_revision #Get the changelog changelog = %x[/usr/bin/git log #{appcast_revision_code}..#{revision_code} --pretty=format:'
  • view commit • %s
  • ' --reverse] @@ -74,7 +74,7 @@ if appcast_revision < latest_revision filename = "Cog-#{revision_code}.zip" filenamedesc = "Cog-#{revision_code}.html" - deltamask = "Cogk54-#{revision_number}-" + deltamask = "Cog#{revision_number}-" temp_path = "/tmp"; %x[rm -rf '#{temp_path}/Cog.app' '#{temp_path}/Cog.zip']