homebrew-cask-versions/Casks/atom-beta.rb
2022-04-10 01:01:03 +08:00

36 lines
1.3 KiB
Ruby

cask "atom-beta" do
version "1.61.0-beta0"
sha256 "9d96b0483ec121fd70b2d57b0d5d33cb5bc716faa38b1a90e78e3d41ab7ece11"
url "https://github.com/atom/atom/releases/download/v#{version}/atom-mac.zip",
verified: "github.com/atom/atom/"
name "Github Atom Beta"
desc "Cross-platform text editor"
homepage "https://atom.io/beta"
livecheck do
url :url
regex(/^v?(\d+(?:\.\d+)*-beta\d*)$/i)
end
auto_updates true
app "Atom Beta.app"
binary "#{appdir}/Atom Beta.app/Contents/Resources/app/apm/bin/apm", target: "apm-beta"
binary "#{appdir}/Atom Beta.app/Contents/Resources/app/atom.sh", target: "atom-beta"
zap trash: [
"~/.atom",
"~/Library/Application Support/Atom",
"~/Library/Application Support/ShipIt_stderr.log",
"~/Library/Application Support/ShipIt_stdout.log",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.github.atom.sfl*",
"~/Library/Application Support/com.github.atom.ShipIt",
"~/Library/Caches/com.github.atom",
"~/Library/Caches/com.github.atom.ShipIt",
"~/Library/Logs/Atom",
"~/Library/Preferences/com.github.atom.helper.plist",
"~/Library/Preferences/com.github.atom.plist",
"~/Library/Saved Application State/com.github.atom.savedState",
]
end