38 lines
1.1 KiB
Ruby
38 lines
1.1 KiB
Ruby
cask 'onyx' do
|
|
version :latest
|
|
sha256 :no_check
|
|
|
|
macos_release = MacOS.release.to_s.delete('.')
|
|
|
|
if MacOS.release <= :yosemite
|
|
url "http://www.titanium.free.fr/download/#{macos_release}/OnyX.dmg"
|
|
else
|
|
# joel.barriere.pagesperso-orange.fr was verified as official when first introduced to the cask
|
|
url "http://joel.barriere.pagesperso-orange.fr/download/#{macos_release}/OnyX.dmg"
|
|
end
|
|
|
|
name 'OnyX'
|
|
homepage 'http://www.titanium.free.fr/onyx.html'
|
|
license :gratis
|
|
|
|
# Unusual case: The software will stop working, or is dangerous to run, on the next macOS release.
|
|
depends_on macos: %w[
|
|
:tiger
|
|
:leopard
|
|
:snow_leopard
|
|
:lion
|
|
:mountain_lion
|
|
:mavericks
|
|
:yosemite
|
|
:el_capitan
|
|
]
|
|
|
|
app 'OnyX.app'
|
|
|
|
caveats do
|
|
if [:leopard, :tiger].include?(MacOS.release.to_sym)
|
|
puts 'OnyX only runs from an Administrator account on this version of OS X.'
|
|
end
|
|
end
|
|
end
|