1.6 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.6 KiB
		
	
	
	
	
	
	
	
installer
This stanza must always be accompanied by uninstall.
The installer stanza takes a series of key-value pairs, the first key of which must be manual: or script:.
installer manual:
installer manual: takes a single string value, describing a GUI installer which must be run by the user at a later time. The path may be absolute, or relative to the Cask. Example (from little-snitch.rb):
installer manual: 'Little Snitch Installer.app'
installer script:
installer script: introduces a series of key-value pairs describing a command which will automate completion of the install. The form is similar to uninstall script::
| key | value | 
|---|---|
| script: | path to an install script to be run via sudo. (Required first key.) | 
| args: | array of arguments to the install script | 
| input: | array of lines of input to be sent to stdinof the script | 
| must_succeed: | set to falseif the script is allowed to fail | 
| sudo: | set to falseif the script does not needsudo | 
The path may be absolute, or relative to the Cask. Example (from adobe-air.rb):
installer script: 'Adobe AIR Installer.app/Contents/MacOS/Adobe AIR Installer',
          args:   %w[-silent],
          sudo:   true
