Update wkhtmltopdf.rb

This commit is contained in:
Miccal Matthews 2023-10-07 06:12:36 +08:00 committed by GitHub
parent 0513fab1e8
commit 4a7594a9ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -8,11 +8,6 @@ cask "wkhtmltopdf" do
desc "HTML to PDF renderer"
homepage "https://wkhtmltopdf.org/"
livecheck do
url "https://wkhtmltopdf.org/downloads.html"
regex(/href=.*?wkhtmltox[._-]v?(\d+(?:\.\d+)*-\d+)[._-]macos[._-]cocoa\.pkg/i)
end
pkg "wkhtmltox-#{version}.macos-cocoa.pkg"
uninstall pkgutil: "org.wkhtmltopdf.wkhtmltox",
@ -33,6 +28,7 @@ cask "wkhtmltopdf" do
# No zap stanza required
caveats do
discontinued
files_in_usr_local
end
end