Move release upload to B2

CQTexperiment
Christopher Snowhill 2021-06-14 19:39:49 -07:00
parent beab7dcf8d
commit 11aa63265d
1 changed files with 3 additions and 3 deletions

View File

@ -105,14 +105,14 @@ if 1 #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/]
%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/]
%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/]
%x[s3cmd put -P -m application/xml '#{site_dir}/#{feed}_builds/#{feed}.xml' s3://balde-losno-co/cog/]
end