mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
find-appcast: new case with endpoint (#80836)
This commit is contained in:
@@ -46,6 +46,7 @@ def find_electron_builder(app)
|
||||
data = YAML.load_file(appcast_file)
|
||||
bucket = data['bucket']
|
||||
channel = data['channel']
|
||||
endpoint = data['endpoint']
|
||||
name = data['name']
|
||||
owner = data['owner']
|
||||
path = data['path']
|
||||
@@ -63,6 +64,7 @@ def find_electron_builder(app)
|
||||
"https://s3.amazonaws.com/#{bucket}/#{path}/latest-mac.yml",
|
||||
"https://#{name}.#{region}.digitaloceanspaces.com/latest-mac.yml",
|
||||
"https://#{name}.#{region}.digitaloceanspaces.com/#{path}/latest-mac.yml",
|
||||
"#{endpoint}/#{bucket}/#{path}/latest-mac.yml",
|
||||
].map { |appcast| appcast.gsub(%r{(?<!:)/{2,}}, '/') } # Collapse groups of two or more forward slahses into one, except when preceded by a colon
|
||||
|
||||
unless verify_appcast('electron-builder', *possible_appcasts)
|
||||
|
||||
Reference in New Issue
Block a user