2015-12-18 09:15:28 +08:00
|
|
|
cask 'vlc' do
|
2016-06-06 09:02:43 +08:00
|
|
|
version '2.2.4'
|
|
|
|
sha256 'fd071b9817c9efccac5a144d69893a4a5323cbde4a74d5691c3cf3ab979d4160'
|
2014-07-01 02:28:06 +08:00
|
|
|
|
2014-07-27 22:11:37 +08:00
|
|
|
url "https://get.videolan.org/vlc/#{version}/macosx/vlc-#{version}.dmg"
|
2014-10-15 23:43:57 +08:00
|
|
|
appcast 'http://update.videolan.org/vlc/sparkle/vlc-intel64.xml',
|
2016-05-12 04:41:19 +08:00
|
|
|
checkpoint: '01543595515ba6449e20124ddf92dec314d5ef60a246af8d9460de01a0977b31'
|
2015-01-30 04:55:43 +08:00
|
|
|
name 'VLC media player'
|
2015-06-02 06:45:32 +08:00
|
|
|
homepage 'https://www.videolan.org/vlc/'
|
2014-10-01 23:34:14 +08:00
|
|
|
license :oss
|
2016-01-04 03:19:52 +08:00
|
|
|
gpg "#{url}.asc",
|
2016-01-18 09:27:20 +08:00
|
|
|
key_id: '65f7c6b4206bd057a7eb73787180713be58d1adc'
|
2014-06-27 08:01:52 +08:00
|
|
|
|
2014-09-16 00:06:35 +08:00
|
|
|
app 'VLC.app'
|
2016-06-03 21:56:51 +08:00
|
|
|
# shim script (https://github.com/caskroom/homebrew-cask/issues/18809)
|
2016-04-12 09:57:08 +08:00
|
|
|
shimscript = "#{staged_path}/vlcwrapper"
|
|
|
|
binary shimscript, target: 'vlc'
|
|
|
|
|
|
|
|
preflight do
|
|
|
|
File.open(shimscript, 'w') do |f|
|
2016-06-11 07:40:33 +08:00
|
|
|
f.puts '#!/bin/bash'
|
2016-06-18 01:25:19 +08:00
|
|
|
f.puts "#{appdir}/VLC.app/Contents/MacOS/VLC \"$@\""
|
2016-04-12 09:57:08 +08:00
|
|
|
FileUtils.chmod '+x', f
|
|
|
|
end
|
|
|
|
end
|
2016-02-09 07:42:25 +08:00
|
|
|
|
|
|
|
zap delete: [
|
|
|
|
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.videolan.vlc.sfl',
|
|
|
|
'~/Library/Application Support/org.videolan.vlc',
|
|
|
|
'~/Library/Preferences/org.videolan.vlc',
|
|
|
|
'~/Library/Preferences/org.videolan.vlc.plist',
|
|
|
|
'~/Library/Saved Application State/org.videolan.vlc.savedState',
|
|
|
|
]
|
2012-03-10 17:30:30 +08:00
|
|
|
end
|