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.
 
 

42 lines
1.9 KiB

cask 'xquartz-beta' do
version '2.7.10_rc5'
sha256 '7401f60d13bde92f3371f6fc69e9649f26b3dacc725f35f4a6821bf80d583837'
# bintray.com/xquartz was verified as official when first introduced to the cask
url "https://dl.bintray.com/xquartz/downloads/XQuartz-#{version}.dmg"
appcast 'https://www.xquartz.org/releases/sparkle/beta.xml',
checkpoint: 'd1cf1d701f09e0c5bd7f1dbe2a7b03d289b11f1dc6f919f766659bd4fae0b5b5'
name 'XQuartz'
homepage 'http://www.xquartz.org/'
pkg 'XQuartz.pkg'
postflight do
Pathname.new(File.expand_path('~')).join('Library', 'Logs').mkpath
# Set default path to X11 to avoid the need of manual setup
system '/usr/bin/defaults', 'write', 'com.apple.applescript', 'ApplicationMap', '-dict-add', 'X11', 'file://localhost/Applications/Utilities/XQuartz.app/'
# Load & start XServer to avoid the need of relogin
system '/bin/launchctl', 'load', '/Library/LaunchAgents/org.macosforge.xquartz.startx.plist'
# Set automatic Updates for Beta Versions
system 'defaults', 'write', 'org.macosforge.xquartz.X11', 'SUFeedURL', 'http://xquartz.macosforge.org/downloads/sparkle/beta.xml'
end
uninstall quit: 'org.macosforge.xquartz.X11',
launchctl: 'org.macosforge.xquartz.*',
pkgutil: 'org.macosforge.xquartz.pkg',
delete: '/opt/X11/'
zap delete: [
'~/Library/Caches/org.macosforge.xquartz.X11',
'~/Library/Logs/X11',
'~/Library/Logs/X11.org.macosforge.xquartz.log',
'~/Library/Logs/X11.org.macosforge.xquartz.log.old',
'~/Library/Preferences/org.macosforge.xquartz.X11.plist',
'~/Library/Saved Application State/org.macosforge.xquartz.X11.savedState',
'~/.Xauthority',
],
rmdir: '~/.fonts'
end