7.8 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			7.8 KiB
		
	
	
	
	
	
	
	
All stanzas
Required Stanzas
Each of the following stanzas is required for every Cask.
| name | multiple occurrences allowed? | value | 
|---|---|---|
| version | no | application version; give value of :latestif versioned downloads are not offered | 
| sha256 | no | SHA-256 checksum of the file downloaded from url, calculated by the commandshasum -a 256 <file>. Can be suppressed by using the special value:no_check(see also Checksum Stanza Details) | 
| url | no | URL to the .dmg/.zip/.tgz/.tbz2file that contains the application.A comment should be added if the hostnames in the urlandhomepagestanzas differ. Block syntax should be used for URLs that change on every visit.See URL Stanza Details for more information. | 
| name | yes | a string providing the full and proper name defined by the vendor (see also Name Stanza Details) | 
| homepage | no | application homepage; used for the brew cask homecommand | 
| license | no | a symbol identifying the license category for the application (see also License Stanza Details) | 
At Least One Artifact Stanza Is Also Required
Each Cask must declare one or more artifacts (i.e. something to install).
| name | multiple occurrences allowed? | value | 
|---|---|---|
| app | yes | relative path to an .appthat should be moved into the/Applicationsfolder on installation (see also App Stanza Details) | 
| pkg | yes | relative path to a .pkgfile containing the distribution (see also Pkg Stanza Details) | 
| binary | yes | relative path to a Binary that should be linked into the /usr/local/binfolder on installation | 
| colorpicker | yes | relative path to a ColorPicker plugin that should be linked into the ~/Library/ColorPickersfolder on installation | 
| font | yes | relative path to a Font that should be linked into the ~/Library/Fontsfolder on installation | 
| input_method | yes | relative path to a Input Method that should be linked into the ~/Library/Input Methodsfolder on installation | 
| internet_plugin | yes | relative path to a Service that should be linked into the ~/Library/Internet Plug-Insfolder on installation | 
| prefpane | yes | relative path to a Preference Pane that should be linked into the ~/Library/PreferencePanesfolder on installation | 
| qlplugin | yes | relative path to a QuickLook Plugin that should be linked into the ~/Library/QuickLookfolder on installation | 
| screen_saver | yes | relative path to a Screen Saver that should be linked into the ~/Library/Screen Saversfolder on installation | 
| service | yes | relative path to a Service that should be linked into the ~/Library/Servicesfolder on installation | 
| audio_unit_plugin | yes | relative path to an Audio Unit plugin that should be linked into the ~/Library/Audio/Componentsfolder on installation | 
| vst_plugin | yes | relative path to a VST Plugin that should be linked into the ~/Library/Audio/VSTfolder on installation | 
| vst3_plugin | yes | relative path to a VST3 Plugin that should be linked into the ~/Library/Audio/VST3folder on installation | 
| suite | yes | relative path to a containing directory that should be moved into the /Applicationsfolder on installation (see also Suite Stanza Details) | 
| artifact | yes | relative path to an arbitrary path that should be symlinked on installation. Must provide an absolute path as a target(example alcatraz.rb). This is only for unusual cases. Theappstanza is strongly preferred when linking.appbundles. | 
| installer | yes | describes an executable which must be run to complete the installation (see Installer Stanza Details) | 
| stage_only | no | true. Assert that the Cask contains no activatable artifacts. | 
Optional Stanzas
| name | multiple occurrences allowed? | value | 
|---|---|---|
| uninstall | yes | procedures to uninstall a Cask. Optional unless the pkgstanza is used. (see also Uninstall Stanza Details) | 
| zap | yes | additional procedures for a more complete uninstall, including user files and shared resources (see also Zap Stanza Details) | 
| appcast | no | a URL providing an appcast feed to find updates for this Cask (see also Appcast Stanza Details) | 
| depends_on | yes | a list of dependencies and requirements for this Cask (see also Depends_on Stanza Details) | 
| conflicts_with | yes | a list of conflicts with this Cask (not yet functional see also Conflicts_with Stanza Details) | 
| caveats | yes | a string or Ruby block providing the user with Cask-specific information at install time (see also Caveats Stanza Details) | 
| preflight | yes | a Ruby block containing preflight install operations (needed only in very rare cases) | 
| postflight | yes | a Ruby block containing postflight install operations (see also Postflight Stanza Details) | 
| uninstall_preflight | yes | a Ruby block containing preflight uninstall operations (needed only in very rare cases) | 
| uninstall_postflight | yes | a Ruby block containing postflight uninstall operations | 
| accessibility_access | no | trueif the application should be granted accessibility access | 
| container nested: | no | relative path to an inner container that must be extracted before moving on with the installation; this allows us to support dmg inside tar, zip inside dmg, etc. | 
| container type: | no | a symbol to override container-type autodetect. May be one of: :air,:bz2,:cab,:dmg,:generic_unar,:gzip,:otf,:pkg,:rar,:seven_zip,:sit,:tar,:ttf,:xar,:zip,:naked. (example parse.rb) | 
| gpg | no | stub: not yet functional. (see also GPG Stanza Details) | 
| auto_updates | no | true. Assert the Cask artifacts auto-update. (Use ifCheck for Updates…or similar is present in app menu) | 
