homebrew-cask/Casks/s/screen-studio.rb

37 lines
1.3 KiB
Ruby

cask "screen-studio" do
arch arm: "-arm64"
version "2.22.16"
sha256 arm: "46523962a516abaeddf39e123bf3c97a186b181ed75f71480699b7c56070884c",
intel: "45c8ffd9eeb109cf012633bdfd8418eafd891ecbfeb6e384890634925d6df2f6"
url "https://screenstudioassets.com/Screen%20Studio-#{version}#{arch}-mac.zip",
verified: "screenstudioassets.com/"
name "Screen Studio"
desc "Screen recorder and editor"
homepage "https://www.screen.studio/"
livecheck do
url "https://www.screen.studio/api/trpc/appInfo.latestVersionInfo?input=%7B%22isBeta%22%3Afalse%7D"
strategy :json do |json|
json.dig("result", "data", "version")
end
end
auto_updates true
depends_on macos: ">= :high_sierra"
app "Screen Studio.app"
zap trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.timpler.screenstudio.sfl*",
"~/Library/Application Support/Screen Studio",
"~/Library/Caches/com.timpler.screenstudio",
"~/Library/Caches/com.timpler.screenstudio.ShipIt",
"~/Library/HTTPStorages/com.timpler.screenstudio",
"~/Library/Preferences/com.timpler.screenstudio.plist",
"~/Library/Saved Application State/com.timpler.screenstudio.savedState",
"~/Screen Studio Projects",
]
end