find-appcast: new case for digitalopenspaces (#79082)

This commit is contained in:
Vítor Galvão
2020-03-22 15:06:05 +00:00
committed by GitHub
parent 718f84731d
commit dc032b1b79
+6 -4
View File
@@ -49,13 +49,14 @@ def find_electron_builder(app)
end
data = YAML.load_file(appcast_file)
url = data['url']
owner = data['owner']
repo = data['repo']
bucket = data['bucket']
channel = data['channel']
region = data['region']
name = data['name']
owner = data['owner']
path = data['path'].sub(%r{^/(.*)/$}, '\1') rescue nil
region = data['region']
repo = data['repo']
url = data['url']
possible_appcasts = [
"#{url}/latest-mac.yml",
@@ -65,6 +66,7 @@ def find_electron_builder(app)
"https://#{bucket}.s3.amazonaws.com/#{path}/latest-mac.yml",
"https://s3-#{region}.amazonaws.com/#{bucket}/#{path}/latest-mac.yml",
"https://s3.amazonaws.com/#{bucket}/#{path}/latest-mac.yml",
"https://#{name}.#{region}.digitaloceanspaces.com/latest-mac.yml"
]
unless verify_appcast('electron-builder', *possible_appcasts)