homebrew-cask/Casks/r/rectangle.rb

32 lines
995 B
Ruby

cask "rectangle" do
version "0.75"
sha256 "22312a4f53c71a886e42a812f88cd92b22e822cd0fd15ef3e36273354bb387ce"
url "https://github.com/rxhanson/Rectangle/releases/download/v#{version}/Rectangle#{version}.dmg",
verified: "github.com/rxhanson/Rectangle/"
name "Rectangle"
desc "Move and resize windows using keyboard shortcuts or snap areas"
homepage "https://rectangleapp.com/"
livecheck do
url "https://rectangleapp.com/downloads/updates.xml"
strategy :sparkle, &:short_version
end
auto_updates true
depends_on macos: ">= :sierra"
app "Rectangle.app"
uninstall quit: "com.knollsoft.Rectangle"
zap trash: [
"~/Library/Application Scripts/com.knollsoft.RectangleLauncher",
"~/Library/Application Support/Rectangle",
"~/Library/Caches/com.knollsoft.Rectangle",
"~/Library/Containers/com.knollsoft.RectangleLauncher",
"~/Library/HTTPStorages/com.knollsoft.Rectangle",
"~/Library/Preferences/com.knollsoft.Rectangle.plist",
]
end