You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

38 lines
1.0 KiB

cask 'clementine-latest' do
version :latest
sha256 :no_check
url do
require 'open-uri'
last_modified_query = '?C=M;O=D'
base_url = 'https://builds.clementine-player.org/mac/'
file = open("#{base_url}#{last_modified_query}")
.read
.scan(%r{href="(clementine-[^"]+.dmg)"})
.flatten
.first
"#{base_url}#{file}"
end
name 'Clementine'
homepage 'https://www.clementine-player.org/'
conflicts_with cask: [
'clementine',
'clementine-rc',
]
app 'Clementine.app'
preflight do
set_permissions "#{staged_path}/Clementine.app", '0755'
end
zap delete: [
'~/Library/Caches/org.clementine-player.Clementine',
'~/Library/Saved Application State/org.clementine-player.Clementine.savedState',
],
trash: [
'~/Library/Application Support/Clementine',
'~/Library/Preferences/org.clementine-player.Clementine.plist',
]
end