From 8502bf999d509576e797ed339c64a834e6e27743 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Thu, 20 Jun 2019 23:34:52 -0700 Subject: [PATCH] Fix feed updater script to upload the HTML change logs, and remove signature v2 override --- Scripts/update_feed.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Scripts/update_feed.rb b/Scripts/update_feed.rb index 2343d468a..8855a23dc 100755 --- a/Scripts/update_feed.rb +++ b/Scripts/update_feed.rb @@ -108,11 +108,14 @@ if appcast_revision < latest_revision deltas = Dir.entries("#{site_dir}/#{feed}_builds").select { |f| f =~ /\A#{Regexp.escape(deltamask)}.+\.delta\z/ }.map { |f| File.join("#{site_dir}/#{feed}_builds", f) } #Upload them to S3 - %x[s3cmd put -P -m application/octet-stream #{deltas.shelljoin} '#{site_dir}/#{feed}_builds/#{filename}' s3://balde.losno.co/cog/ --signature-v2] + %x[s3cmd put -P -m application/octet-stream #{deltas.shelljoin} '#{site_dir}/#{feed}_builds/#{filename}' s3://balde.losno.co/cog/] + + #Upload the changelog that Sparkle will display + %x[s3cmd put -P -m text/html '#{site_dir}/#{feed}_builds/#{filenamedesc}' s3://balde.losno.co/cog/] #Clean up %x[rm -rf '#{temp_path}/Cog.app'] #Upload to S3 - %x[s3cmd put -P -m application/xml '#{site_dir}/#{feed}_builds/#{feed}.xml' s3://balde.losno.co/cog/ --signature-v2] + %x[s3cmd put -P -m application/xml '#{site_dir}/#{feed}_builds/#{feed}.xml' s3://balde.losno.co/cog/] end