32 lines
926 B
Ruby
32 lines
926 B
Ruby
cask "akiflow" do
|
|
version "2.41.107,9bd4a3ff"
|
|
sha256 "f41815589336cb8ae97d25c27962df011c1c431817651beec459bc92cb4b3be2"
|
|
|
|
url "https://download.akiflow.com/builds/Akiflow-#{version.csv.first}-#{version.csv.second}-universal.dmg"
|
|
name "Akiflow"
|
|
desc "Time blocking and productivity platform"
|
|
homepage "https://akiflow.com/"
|
|
|
|
livecheck do
|
|
url "https://akiflow.com/download/latest"
|
|
regex(/Akiflow[._-](\d+(?:\.\d+)+)[._-](\h+)[._-]universal\.dmg/i)
|
|
strategy :header_match do |headers, regex|
|
|
match = headers["location"]&.match(regex)
|
|
next if match.blank?
|
|
|
|
"#{match[1]},#{match[2]}"
|
|
end
|
|
end
|
|
|
|
depends_on macos: ">= :catalina"
|
|
|
|
app "Akiflow.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/Akiflow",
|
|
"~/Library/Preferences/Akiflow",
|
|
"~/Library/Preferences/com.akiflow.akiflow.plist",
|
|
"~/Library/Saved Application State/com.akiflow.akiflow.savedState",
|
|
]
|
|
end
|