mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-17 06:16:47 -06:00
8.4 KiB
8.4 KiB
Cask Language Deltas
This document summarizes revisions to the Cask Domain-Specific Language (DSL).
Cask DSL 1.0
These are deltas from the pre-existing (unversioned) conventions to the Cask DSL 1.0 specification.
- Header Line (1.0)
- New Forms (1.0)
- Renamed Forms (1.0)
- All Supported Stanzas (1.0)
- Other Supported Non-stanza Methods (1.0)
- Caveats Mini-DSL (1.0)
Header Line (1.0)
The header line was changed from the form
class MyApp < Cask
to
cask :v1 => 'my-app' do
Legacy rules for mapping Cask filenames to header class names are no longer
needed. The token 'my-app' in the header corresponds directly to the
filename my-app.rb.
The term :v1 identifies the DSL version (currently 1.0), and defines the
features which are available for the current Cask.
New Forms (1.0)
appcastartifactdepends_on :cask- stub - not yet functional
depends_on :java- stub - not yet functional
conflicts_with- stub - not yet functional
gpgstub: not yet functional.installer :scriptlicensenamepostflight plist_setpostflight suppress_move_to_applicationsstage_only- replaced undocumented
caskroom_only
- replaced undocumented
suitetagsuninstall :rmdiruninstall :trash- stub - currently just a synonym for
uninstall :delete
- stub - currently just a synonym for
zap
Renamed Forms (1.0)
| old form | new form |
|---|---|
after_install |
postflight |
after_uninstall |
uninstall_postflight |
arch_only (within caveats) |
depends_on :arch |
assistive_devices (within caveats) |
accessibility_access |
before_install |
preflight |
before_uninstall |
uninstall_preflight |
container_type |
container :type |
depends_on_formula |
depends_on :formula |
destination_path |
staged_path |
install |
pkg |
link |
app (or sometimes suite or artifact) |
manual_installer (within caveats) |
installer :manual |
nested_container |
container :nested => |
os_version_only (within caveats) |
depends_on :macos |
title (in interpolations) |
token |
uninstall :files |
uninstall :delete |
version 'latest' |
version :latest |
x11_required (within caveats) |
depends_on :x11 |
All Supported Stanzas (1.0)
appappcastartifactbinarycaveatscolorpickerconflicts_withcontainerdepends_onfontgpgstub: not yet functional.homepageinput_methodinstallerinternet_pluginlicensepkgpostflightpreflightprefpaneqlpluginscreen_saverservicesha256stage_onlysuitetagsuninstall_postflightuninstall_preflightuninstallurlversionwidgetzap
Other Supported Non-stanza Methods (1.0)
For use in eg interpolation:
Caveats Mini-DSL (1.0)
Postflight Mini-DSL (1.0)
References
- DSL 1.0 transition notice
- DSL 1.0 roadmap
- DSL 1.1 roadmap
- DSL 2.0 roadmap
brew cask upgraderoadmap- Full specification