2022-09-29 12:08:46 +08:00
|
|
|
cask "akiflow" do
|
2024-05-15 20:40:21 +08:00
|
|
|
version "2.42.12,28093c14"
|
|
|
|
sha256 "8ce9f53c8b47dbbd05cf2865f3ae5d55beaaf7e8c9b85c8293f7994fe19cdcb0"
|
2022-09-29 12:08:46 +08:00
|
|
|
|
2024-04-16 22:16:15 +08:00
|
|
|
url "https://download.akiflow.com/builds/Akiflow-#{version.csv.first}-#{version.csv.second}-universal.dmg"
|
2022-09-29 12:08:46 +08:00
|
|
|
name "Akiflow"
|
2024-04-16 22:16:15 +08:00
|
|
|
desc "Time blocking and productivity platform"
|
2022-09-29 12:08:46 +08:00
|
|
|
homepage "https://akiflow.com/"
|
|
|
|
|
|
|
|
livecheck do
|
2024-04-16 22:16:15 +08:00
|
|
|
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
|
2022-09-29 12:08:46 +08:00
|
|
|
end
|
|
|
|
|
2024-04-16 22:16:15 +08:00
|
|
|
depends_on macos: ">= :catalina"
|
2023-09-23 23:09:33 +08:00
|
|
|
|
2022-09-29 12:08:46 +08:00
|
|
|
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
|