Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #411 from rolandwalker/mass_change_preflight_postf…
Browse files Browse the repository at this point in the history
…light

Mass change: new preflight/postflight stanzas
  • Loading branch information
rolandwalker committed Sep 9, 2014
2 parents fce4961 + 1bf4a26 commit 555190b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Casks/beyond-compare-4-beta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Casks/flux-beta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Casks/java7.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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', '--',
Expand Down

0 comments on commit 555190b

Please sign in to comment.