mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
36 lines
1.1 KiB
Ruby
36 lines
1.1 KiB
Ruby
cask "sunsama" do
|
|
arch arm: "arm64", intel: "x64"
|
|
|
|
version "2.0.14,23101366qgj80nk"
|
|
sha256 arm: "c772ad3744497466a301d1801a8db504b9e4d720d08de3263608e0d628c72e75",
|
|
intel: "e3a6912ba193e1ff3fb60c0452204c7e8aa39ad5cf0223db2629429a7030d527"
|
|
|
|
url "https://download.todesktop.com/2003096gmmnl0g1/Sunsama%20#{version.csv.first}%20-%20Build%20#{version.csv.second}-#{arch}-mac.zip",
|
|
verified: "download.todesktop.com/2003096gmmnl0g1/"
|
|
name "Sunsama"
|
|
desc "Daily planner and calendar"
|
|
homepage "https://www.sunsama.com/desktop"
|
|
|
|
livecheck do
|
|
url "https://download.todesktop.com/2003096gmmnl0g1/latest-mac.yml"
|
|
regex(/Build[ ._-]([^-]+)[._-]/i)
|
|
strategy :electron_builder do |item, regex|
|
|
build = item["files"].first["url"][regex, 1]
|
|
next if build.blank?
|
|
|
|
"#{item["version"]},#{build}"
|
|
end
|
|
end
|
|
|
|
auto_updates true
|
|
|
|
app "Sunsama.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/Sunsama",
|
|
"~/Library/Logs/Sunsama",
|
|
"~/Library/Preferences/com.sunsama.native-app.plist",
|
|
"~/Library/Saved Application State/com.sunsama.native-app.savedState",
|
|
]
|
|
end
|