mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
32 lines
1.2 KiB
Ruby
32 lines
1.2 KiB
Ruby
cask "remarkable" do
|
|
version "3.8.0.810,53084160,qt6-2Mf5HMSKpz"
|
|
sha256 "e45c936381226fb5bf68a3400f3df49e2bed62e6a77267c5c73800c837f6589a"
|
|
|
|
url "https://updates-download.cloud.remarkable.engineering/sparkle/reMarkableMacOs/#{version.csv.second}/reMarkable-#{version.csv.first}.#{version.csv.third}.dmg",
|
|
verified: "updates-download.cloud.remarkable.engineering/sparkle/reMarkableMacOs/"
|
|
name "Remarkable"
|
|
desc "View, Screen Share, organize, import, and download files to a reMarkable device"
|
|
homepage "https://remarkable.com/"
|
|
|
|
livecheck do
|
|
url "https://get-updates.cloud.remarkable.engineering/sparkle/reMarkableMacOs/Prod/appcast.xml"
|
|
regex(%r{/reMarkableMacOs/(\d+)/reMarkable[._-]v?(\d+(?:\.\d+)+)\.(.+)\.dmg}i)
|
|
strategy :page_match do |page, regex|
|
|
page.scan(regex).map { |match| "#{match.second},#{match.first},#{match.third}" }
|
|
end
|
|
end
|
|
|
|
auto_updates true
|
|
depends_on macos: ">= :high_sierra"
|
|
|
|
app "reMarkable.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/remarkable",
|
|
"~/Library/Caches/com.remarkable.desktop",
|
|
"~/Library/Caches/remarkable",
|
|
"~/Library/Preferences/com.remarkable.desktop.plist",
|
|
"~/Library/Saved Application State/com.remarkable.desktop.savedState",
|
|
]
|
|
end
|