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

Mass change: new preflight/postflight stanzas #411

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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