mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
39 lines
1.3 KiB
Ruby
39 lines
1.3 KiB
Ruby
cask "rewind" do
|
|
version "15141.1,c5bcc14,20231204"
|
|
sha256 "58094b4b2cc70fce6e3a102458c968ee52ae82fcfa4feec78b1c638e2516c966"
|
|
|
|
url "https://updates.rewind.ai/builds/main/b#{version.csv.first}-main-#{version.csv.second}.zip"
|
|
name "Rewind"
|
|
desc "Record and search your screen and audio"
|
|
homepage "https://www.rewind.ai/"
|
|
|
|
livecheck do
|
|
url "https://updates.rewind.ai/appcasts/main.xml"
|
|
strategy :sparkle do |item|
|
|
# Throttle updates to one every 3 days.
|
|
next version if DateTime.parse(version.csv.third) + 3 > Date.today
|
|
|
|
"#{item.version},#{item.url.match(/[._-](\w+)\.zip/i)[1]},#{item.pub_date.strftime("%Y%m%d")}"
|
|
end
|
|
end
|
|
|
|
auto_updates true
|
|
depends_on macos: ">= :monterey"
|
|
|
|
app "Rewind.app"
|
|
|
|
uninstall quit: "com.memoryvault.MemoryVault"
|
|
|
|
zap trash: [
|
|
"~/Documents/rewind_logs_*.zip",
|
|
"~/Library/Application Support/com.memoryvault.MemoryVault",
|
|
"~/Library/Caches/com.memoryvault.MemoryVault",
|
|
"~/Library/HTTPStorages/com.memoryvault.MemoryVault",
|
|
"~/Library/LaunchAgents/com.rewind.Rewind.plist",
|
|
"~/Library/Logs/DiagnosticReports/Rewind_*.diag",
|
|
"~/Library/Logs/Rewind",
|
|
"~/Library/Preferences/com.memoryvault.MemoryVault.plist",
|
|
"~/Library/WebKit/com.memoryvault.MemoryVault",
|
|
]
|
|
end
|