Browse Source

Merge pull request #411 from rolandwalker/mass_change_preflight_postflight

Mass change: new preflight/postflight stanzas
master
Roland Walker 10 years ago
parent
commit
821651b313
  1. 2
      Casks/beyond-compare-4-beta.rb
  2. 2
      Casks/flux-beta.rb
  3. 2
      Casks/java7.rb

2
Casks/beyond-compare-4-beta.rb

@ -7,7 +7,7 @@ class BeyondCompare4Beta < Cask
link 'Beyond Compare.app'
after_install do
postflight do
# Don't ask to move the app bundle to /Applications
system '/usr/bin/defaults', 'write', 'com.ScooterSoftware.BeyondCompare', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true'
end

2
Casks/flux-beta.rb

@ -7,7 +7,7 @@ class FluxBeta < Cask
link 'Flux.app'
after_install do
postflight do
# Don't ask to move the app bundle to /Applications
system '/usr/bin/defaults', 'write', 'org.herf.Flux', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true'
end

2
Casks/java7.rb

@ -9,7 +9,7 @@ class Java7 < Cask
homepage 'http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html'
install 'JDK 7 Update 67.pkg'
after_install do
postflight do
system '/usr/bin/sudo', '-E', '--',
'/usr/libexec/PlistBuddy', '-c', 'Add :JavaVM:JVMCapabilities: string BundledApp', "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents/Info.plist"
system '/usr/bin/sudo', '-E', '--',

Loading…
Cancel
Save