homebrew-cask/Casks/adobe-photoshop-lightroom.rb

32 lines
1.5 KiB
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'adobe-photoshop-lightroom' do
2015-11-30 15:20:10 +08:00
version '6.3'
sha256 'f1282896be452a8515f92f5dd104695f54db114d5d06ba8d26175654cb26a524'
2015-11-30 15:20:10 +08:00
url "http://swupdl.adobe.com/updates/oobe/aam20/mac/AdobeLightroom-#{version.to_i}.0/#{version}/setup.dmg"
name 'Adobe Photoshop Lightroom'
2015-06-29 14:32:18 +08:00
homepage 'https://www.adobe.com/products/photoshop-lightroom.html'
2014-11-19 23:21:22 +08:00
license :commercial
2015-11-30 15:20:10 +08:00
depends_on :cask => 'caskroom/versions/adobe-photoshop-lightroom600'
# staged_path not available in Installer/Uninstall Stanza, workaround by nesting with preflight/postflight
# see https://github.com/caskroom/homebrew-cask/pull/8887
# and https://github.com/caskroom/homebrew-versions/pull/296
preflight do
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/AdobePatchInstaller.app/Contents/MacOS/AdobePatchInstaller", '--mode=silent'
end
uninstall_preflight do
system 'brew', 'cask', 'uninstall', 'adobe-photoshop-lightroom600'
end
zap :delete => [
'~/Library/Application Support/Adobe/Lightroom',
"~/Library/Preferences/com.adobe.Lightroom#{version.to_i}.plist",
]
2015-11-30 15:20:10 +08:00
caveats 'Installation or Uninstallation may fail with Exit Code 19 (Conflicting Processes running) if Browsers, Safari Notification Service or SIMBL Services are running or Adobe Creative Cloud or any other Adobe Products are already installed. See Logs in /Library/Logs/Adobe/Installers if Installation or Uninstallation fails, to identify the conflicting processes.'
2014-05-21 21:03:17 +08:00
end