Skip to content

Commit

Permalink
Merge pull request #172412 from Homebrew/fbreader
Browse files Browse the repository at this point in the history
  • Loading branch information
p-linnane authored Apr 29, 2024
2 parents 498ebb6 + 0ccc848 commit 6eaf67e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Casks/f/fbreader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@
homepage "https://fbreader.org/macos/"

livecheck do
url :homepage
regex(%r{>Current\s*version:\sv?(\d+(?:\.\d+)+).*?</h}i)
url "https://fbreader.org/service/look_for_updates/macos/other"
strategy :json do |json|
json["version"]
end
end

pkg "FBReader.pkg"

uninstall pkgutil: "com.fbreader"

zap trash: "~/.FBReader"
zap trash: [
"~/.FBReader",
"~/Library/Application Scripts/com.fbreader",
"~/Library/Containers/com.fbreader",
]
end

0 comments on commit 6eaf67e

Please sign in to comment.