emacs: add livecheck (#97731)

This commit is contained in:
Markus Reiter 2021-01-10 19:23:35 +01:00 committed by GitHub
parent 5e48889f6c
commit c74a71fe7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -3,10 +3,15 @@ cask "emacs" do
sha256 "67688cfa124544a2d41d62ad33dcd12843679a1bd48e870836044d9a0bb9b062"
url "https://emacsformacosx.com/emacs-builds/Emacs-#{version}-universal.dmg"
appcast "https://emacsformacosx.com/atom/release"
name "Emacs"
homepage "https://emacsformacosx.com/"
livecheck do
url "https://emacsformacosx.com/atom/release"
strategy :page_match
regex(%r{href=.*?/Emacs-(\d+(?:\.\d+)*-\d+)-universal\.dmg}i)
end
conflicts_with formula: "emacs"
app "Emacs.app"