homebrew-cask/Casks/f/fig.rb

53 lines
1.4 KiB
Ruby

cask "fig" do
version "2.16.0"
sha256 "61fe404ab063974d794c7c6f7879ccf7e91adc4f139211361967fe58582b0623"
url "https://repo.fig.io/generic/stable/asset/#{version}/universal/fig.dmg"
name "fig"
desc "Reimagine your terminal"
homepage "https://fig.io/"
livecheck do
url "https://repo.fig.io/generic/stable/index.json"
strategy :json do |json|
json["hints"]["livecheck"]
end
end
auto_updates true
depends_on macos: ">= :high_sierra"
app "Fig.app"
binary "#{appdir}/Fig.app/Contents/MacOS/fig-darwin-universal", target: "fig"
uninstall script: {
executable: "#{appdir}/Fig.app/Contents/MacOS/fig-darwin-universal",
args: ["_", "brew-uninstall"],
},
launchctl: [
"io.fig.launcher",
"io.fig.uninstall",
"io.fig.dotfiles-daemon",
],
quit: [
"com.mschrage.fig",
"io.fig.cursor",
]
zap trash: [
"~/.fig",
"~/.fig.dotfiles.bak",
"~/Library/Application Support/com.mschrage.fig",
"~/Library/Application Support/fig",
"~/Library/Caches/com.mschrage.fig",
"~/Library/Caches/fig",
"~/Library/HTTPStorages/com.mschrage.fig",
"~/Library/Preferences/com.mschrage.fig.*",
"~/Library/WebKit/com.mschrage.fig",
]
caveats <<~EOS
Please launch the Fig application to finish setup.
EOS
end