homebrew-cask/Casks/ticktick.rb

24 lines
718 B
Ruby

cask "ticktick" do
version "3.7.60,168"
sha256 "7fe6952a25c6e309e32178175e2d140b56b297d1c57eb6cadd8220d5c85bcfee"
url "https://appest-public.s3.amazonaws.com/download/mac/TickTick_#{version.before_comma}_#{version.after_comma}.dmg",
verified: "appest-public.s3.amazonaws.com/"
name "TickTick"
desc "To-do & task list manager"
homepage "https://www.ticktick.com/home"
livecheck do
url "https://www.ticktick.com/static/getApp/download?type=mac"
strategy :header_match do |headers|
match = headers["location"].match(%r{/TickTick_(\d+(?:\.\d+)*)_(\d+)\.dmg}i)
"#{match[1]},#{match[2]}"
end
end
auto_updates true
depends_on macos: ">= :sierra"
app "TickTick.app"
end