Skip to content

Commit

Permalink
Update curio from 15 to 19 (Homebrew#115367)
Browse files Browse the repository at this point in the history
* Update curio from 15 to 19

* Update Curio from 15 to 19

* Update curio.rb

* add livecheck

Co-authored-by: xurc <[email protected]>
Co-authored-by: Bevan Kay <[email protected]>
  • Loading branch information
3 people committed Dec 6, 2021
1 parent a628377 commit 2e56581
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions Casks/curio.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
cask "curio" do
version "15,15008"
sha256 "9e0c4176fd94ef9535bfb02289e8b8e43fc2cb4c3fe1135d2e3171ddd84fd9b3"
version "19,19006"
sha256 "e2ee57fbc298573e83da89f25b7c3f11aa71ddd6c1d76ad4d81d3b5782623141"

url "https://www.zengobi.com/downloads/Curio#{version.after_comma.no_dots}.zip"
url "https://www.zengobi.com/downloads/Curio#{version.csv.second.no_dots}.zip"
name "Curio"
desc "Note-taking and organizing app"
homepage "https://zengobi.com/curio/"

livecheck do
url "https://www.zengobi.com/appcasts/Curio14-2ZaxaUUlKorRS4Hf.xml"
strategy :sparkle
url "https://www.zengobi.com/curio/download/"
strategy :header_match do |headers|
match = headers["location"].match(%r{/Curio(\d+)\.zip})
next if match.blank?

puts match

"#{match[1][0..1]},#{match[1]}"
end
end

depends_on macos: ">= :mojave"
Expand Down

0 comments on commit 2e56581

Please sign in to comment.