31 lines
894 B
Ruby
31 lines
894 B
Ruby
cask "logos" do
|
|
version "9.9.0.0016"
|
|
sha256 "219e651bf18b07c2384d8615a8d262810f43c0eae462d22f13955f13946a8961"
|
|
|
|
url "https://downloads.logoscdn.com/LBS#{version.major}/Installer/#{version}/LogosMac.dmg",
|
|
verified: "downloads.logoscdn.com/"
|
|
name "Logos"
|
|
desc "Bible study software"
|
|
homepage "https://www.logos.com/"
|
|
|
|
livecheck do
|
|
url "https://clientservices.logos.com/update/v1/feed/logos#{version.major}-mac/stable.xml"
|
|
strategy :page_match
|
|
regex(%r{<logos:version[^>]*>(\d+(?:\.\d+)*)</logos:version>}i)
|
|
end
|
|
|
|
auto_updates true
|
|
depends_on macos: ">= :mojave"
|
|
|
|
app "Logos.app"
|
|
|
|
uninstall launchctl: "com.logos.LogosIndexer",
|
|
quit: "com.logos.Logos"
|
|
|
|
zap trash: [
|
|
"~/Library/Preferences/com.logos.LogosIndexer.plist",
|
|
"~/Library/Preferences/com.logos.LogosCEF.plist",
|
|
"~/Library/Preferences/com.logos.Logos.plist",
|
|
]
|
|
end
|