homebrew-cask/Casks/s/shift.rb

30 lines
995 B
Ruby

cask "shift" do
arch arm: "arm64", intel: "x64"
version "9.0.4.985"
sha256 arm: "fa8702e40e8a51a9c5b8e19f9a722abd12a768130ae558d24729ade7c6d8dbca",
intel: "fca220effb6c9ac5980b2852b36a88331cefd62de1a0282a2ef1f6ff3d224933"
url "https://updates.tryshift.com/v#{version.major_minor_patch}/stable/shift-v#{version}-stable-#{arch}.dmg"
name "Shift"
desc "Workstation to streamline your accounts, apps, and workflows"
homepage "https://tryshift.com/"
livecheck do
url "https://tryshift.com/download/?platform=mac"
regex(/href=.*?(\d+(?:[._-]\d+)+)[._-]stable.*?\.dmg/i)
end
app "Shift.app"
zap trash: [
"~/Library/Application Support/.Shift",
"~/Library/Application Support/Shift",
"~/Library/Caches/com.rdbrck.shift.ShipIt",
"~/Library/Caches/com.rdbrck.shift",
"~/Library/HTTPStorages/com.rdbrck.shift",
"~/Library/Preferences/com.rdbrck.shift.plist",
"~/Library/Saved Application State/com.rdbrck.shift.savedState",
]
end