29 lines
804 B
Ruby
29 lines
804 B
Ruby
cask "second-life-viewer" do
|
|
version "6.5.0.565607"
|
|
sha256 "11f83fef6ffc15bd404d1306c41b7b8a9a739259afbd2b4a0463dd0f4390a469"
|
|
|
|
url "http://download.cloud.secondlife.com/Viewer_#{version.major}/Second_Life_#{version.dots_to_underscores}_x86_64.dmg"
|
|
name "Linden Lab Second Life Viewer"
|
|
desc "3D browsing software for Second Life online virtual world"
|
|
homepage "https://secondlife.com/"
|
|
|
|
livecheck do
|
|
url "https://secondlife.com/support/downloads/"
|
|
strategy :page_match do |page|
|
|
v = page[%r{href=.*?/Second_Life_(\d+(?:_\d+)+)_x86_64\.dmg}i, 1]
|
|
next if v.blank?
|
|
|
|
v.tr("_", ".")
|
|
end
|
|
end
|
|
|
|
depends_on macos: ">= :sierra"
|
|
|
|
app "Second Life Viewer.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/SecondLife",
|
|
"~/Library/Caches/SecondLife",
|
|
]
|
|
end
|