Update evernote from 10.29.7,3186 to 10.30.6,3202,cfd8660355 (#118586)
* Update evernote from 10.30.6,3202,cfd8660355 to 10.30.6,3202,cfd8660355 * Apply suggestions from code review Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com> Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
This commit is contained in:
parent
bcb63e4fb5
commit
8608d4ebd3
|
@ -15,10 +15,10 @@ cask "evernote" do
|
||||||
|
|
||||||
url "https://cdn1.evernote.com/mac-smd/public/Evernote_RELEASE_#{version}.dmg"
|
url "https://cdn1.evernote.com/mac-smd/public/Evernote_RELEASE_#{version}.dmg"
|
||||||
else
|
else
|
||||||
version "10.29.7,3186"
|
version "10.30.6,3202,cfd8660355"
|
||||||
sha256 "0d33fb552f72086ea73bbbd0719bd14bec36973303d8f8b10e54e90220b76da4"
|
sha256 "48c3d90408dddb9bee15c1a07eb6bf030c386100aae3eef4f4eec9c52cc3d4bf"
|
||||||
|
|
||||||
url "https://cdn1.evernote.com/boron/mac/builds/Evernote-#{version.csv.first}-mac-ddl-ga-#{version.csv.second}.dmg"
|
url "https://cdn1.evernote.com/boron/mac/builds/Evernote-#{version.csv.first}-mac-ddl-ga-#{version.csv.second}-#{version.csv.third}.dmg"
|
||||||
end
|
end
|
||||||
|
|
||||||
name "Evernote"
|
name "Evernote"
|
||||||
|
@ -27,11 +27,14 @@ cask "evernote" do
|
||||||
|
|
||||||
livecheck do
|
livecheck do
|
||||||
url "https://evernote.s3.amazonaws.com/boron/mac/public/latest-mac.yml"
|
url "https://evernote.s3.amazonaws.com/boron/mac/public/latest-mac.yml"
|
||||||
strategy :electron_builder do |yml|
|
regex(/Evernote[._-](\d+(?:\.\d+)+)-mac-ddl-ga-(\d+(?:\.\d+)*)-([0-9a-f]+)\.dmg/i)
|
||||||
match = yml["files"][0]["url"].match(/Evernote[._-](\d+(?:\.\d+)+)[._-]mac[._-]ddl[._-]ga[._-](\d+(?:\.\d+)*)/)
|
strategy :electron_builder do |yaml, regex|
|
||||||
next if match.blank?
|
yaml["files"]&.map do |file|
|
||||||
|
match = file["url"]&.match(regex)
|
||||||
|
next if match.blank?
|
||||||
|
|
||||||
"#{match[1]},#{match[2]}"
|
"#{match[1]},#{match[2]},#{match[3]}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue