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:
MLL 2022-02-04 09:02:15 -08:00 committed by GitHub
parent bcb63e4fb5
commit 8608d4ebd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 7 deletions

View File

@ -15,10 +15,10 @@ cask "evernote" do
url "https://cdn1.evernote.com/mac-smd/public/Evernote_RELEASE_#{version}.dmg"
else
version "10.29.7,3186"
sha256 "0d33fb552f72086ea73bbbd0719bd14bec36973303d8f8b10e54e90220b76da4"
version "10.30.6,3202,cfd8660355"
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
name "Evernote"
@ -27,11 +27,14 @@ cask "evernote" do
livecheck do
url "https://evernote.s3.amazonaws.com/boron/mac/public/latest-mac.yml"
strategy :electron_builder do |yml|
match = yml["files"][0]["url"].match(/Evernote[._-](\d+(?:\.\d+)+)[._-]mac[._-]ddl[._-]ga[._-](\d+(?:\.\d+)*)/)
next if match.blank?
regex(/Evernote[._-](\d+(?:\.\d+)+)-mac-ddl-ga-(\d+(?:\.\d+)*)-([0-9a-f]+)\.dmg/i)
strategy :electron_builder do |yaml, regex|
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