Homebrew Casks
Generate Homebrew cask formulae for macOS applications
Anodizer generates Homebrew Cask .rb files for your macOS artifacts and pushes them to your tap repository. A cask is the canonical Homebrew channel for pre-compiled binaries — both GUI .app bundles (via the app stanza) and CLI tools (via a binary stanza that symlinks an executable onto the user's PATH). The Homebrew Formula path — which compiles from source — is deprecated upstream for pre-built release binaries; use a cask. Set binaries: to ship a CLI; set app: to ship a GUI application; set both when a bundle also exposes a CLI.
Generated casks pass brew style: stanzas come in Homebrew's order and grouping, arguments and arrays use Homebrew's alignment, macOS-only stanzas (app, service) sit inside on_macos when the cask also supports Linux, and a cask with no Linux side carries depends_on :macos unless its custom_block already declares an OS dependency (see Dependencies). A cask with hooks is the one exception; see Hooks.
Classification
| Group | Required (default) | Rollback | Token scope |
|---|---|---|---|
| Manager | false | re-clone tap, git revert HEAD --no-edit, push | GITHUB_TOKEN contents:write |
See Release resilience for the full classification table and the Submitter gate semantics.
The required: field
Default: false — a Homebrew Cask push failure is logged but does not fail the release.
Set required: true to make the release exit non-zero if this publisher fails:
homebrew_casks:
- name: myapp
repository:
owner: myorg
name: homebrew-tap
required: true
See Publish overview — the required: field for the full semantics.
Minimal config
homebrew_casks:
- name: myapp
repository:
owner: myorg
name: homebrew-tapFull config reference
homebrew_casks:
- name: myapp # optional; cask name (default: project name)
repository:
owner: myorg # required
name: homebrew-tap # required
token: "{{ Env.HOMEBREW_TAP_TOKEN }}" # optional; default: HOMEBREW_TAP_TOKEN, then the GitHub token chain
branch: main # optional; push branch (default: repo default branch, or versioned <cask>-<version> when pull_request.enabled)
pull_request:
enabled: false # optional; true opens a PR in place of a direct push
token: "" # token used to open the PR (default: repository.token, then HOMEBREW_TAP_TOKEN, then the GitHub token chain)
base:
branch: main # optional; PR target branch
directory: Casks # optional; directory in the tap repo
description: "" # optional
homepage: "" # optional
license: "" # optional
app: "" # optional; app stanza name
binaries: [] # optional; binaries to symlink
manpages: [] # optional
caveats: "" # optional; post-install message
service: "" # optional; Services bundle (.workflow) to install
custom_block: "" # optional; raw Ruby inserted into cask
depends_on_macos: true # optional; overrides the custom_block scan
livecheck: # optional; version polling (default: skip)
strategy: github_latest # optional; livecheck strategy symbol
url: url # optional; :url shorthand or a literal URL
regex: "" # optional; raw Ruby for page_match strategies
skip: false # optional; true forces the skip stanza
skip_reason: "" # optional; custom skip message
alternative_names: [] # optional
ids: [] # optional; filter by build IDs
skip_upload: false # optional; "auto" skips prereleases
commit_author:
name: ""
email: ""
commit_msg_template: "" # optional
url:
template: "" # optional; download URL template
using: "" # optional; download strategy
completions:
bash: "" # optional; path to bash completion
zsh: "" # optional
fish: "" # optional
uninstall:
quit: []
delete: []
launchctl: []
zap:
trash: []
hooks:
pre:
install: ""
post:
install: ""
dependencies: # optional
- formula: cmake
- cask: xquartz
conflicts: # optional
- cask: another-appAuthentication
The push to your tap repository uses the first token that is set:
repository.tokenHOMEBREW_TAP_TOKEN- the run's GitHub token (
--token, or theANODIZER_GITHUB_TOKEN/GITHUB_TOKEN/GH_TOKENvalue read at startup, or, when all three are unset, the GitHub token file:env_files.github_token, else~/.config/anodizer/github_token, else~/.config/goreleaser/github_token; with the list form ofenv_filesno token file is read and aGITHUB_TOKENline in one of the listed files takes its place); a GitLab or Gitea token is never sent to GitHub ANODIZER_GITHUB_TOKEN,GITHUB_TOKEN,GH_TOKEN
The pull request is opened with the first token that is set:
repository.pull_request.tokenrepository.tokenHOMEBREW_TAP_TOKEN- the run's GitHub token (
--token, or theANODIZER_GITHUB_TOKEN/GITHUB_TOKEN/GH_TOKENvalue read at startup, or, when all three are unset, the GitHub token file:env_files.github_token, else~/.config/anodizer/github_token, else~/.config/goreleaser/github_token; with the list form ofenv_filesno token file is read and aGITHUB_TOKENline in one of the listed files takes its place); a GitLab or Gitea token is never sent to GitHub ANODIZER_GITHUB_TOKEN,GITHUB_TOKEN,GH_TOKEN
With none of these set, the gh CLI's own login opens the pull request; with neither a token nor gh, the publish fails.
homebrew_casks:
- name: myapp
repository:
owner: myorg
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
pull_request:
enabled: true
token: "{{ .Env.PR_TOKEN }}"Common gotchas
- macOS artifact required: a cask is generated only when the release has a macOS artifact (
disk_image,archiveor uploadable binary). Linux artifacts of the same release join it as anon_linuxblock; Windows and other targets are ignored. - SHA256 required: cask files require a checksum on every artifact. Ensure the checksum stage runs before the cask publisher.
update_existing_pr: if your tap uses a PR-based workflow, setupdate_existing_pr: trueto force-push to an existing open branch, so no duplicate PR is opened. See Cask existing PR behavior in the Homebrew doc.
Republish / update behavior
Cask files are updated in-place on each release; no recovery flag is required for re-cuts. When a PR-based workflow is configured and a prior run left an open PR, set update_existing_pr: true to force-push the updated cask file, so no duplicate PR is opened. See Cask existing PR behavior in the Homebrew doc and Recovery flags for the full mechanism.
Homebrew cask config fields
| Field | Type | Default | Description |
|---|---|---|---|
name | string | project name | Cask name. The token — the .rb file name and the cask "..." header — is this value lowercased with spaces as dashes (Foo Bar publishes Casks/foo-bar.rb); the human-readable name "..." stanza keeps it verbatim |
repository | object | required | Tap repository (owner, name) |
directory | string | Casks | Directory in the tap repo |
description | string | Cargo [package].description | Cask description. Derived from Cargo.toml; set to override. |
homepage | string | Cargo [package].homepage | Homepage URL. Derived from Cargo.toml; set to override. |
license | string | none | License identifier |
app | string | none | Application name for app stanza |
binaries | list | none | Binaries to symlink |
manpages | list | none | Man pages to install |
caveats | string | none | Post-install caveats message |
service | string | none | Path of a macOS Services bundle (for example MyTool.workflow) inside the download, written as service "<path>" |
custom_block | string | none | Raw Ruby inserted into the cask |
depends_on_macos | bool | derived | Whether the cask renders depends_on :macos. See Dependencies. |
livecheck | object | skip | livecheck do … end stanza for version polling. See Livecheck. |
alternative_names | list | none | Alternative cask names |
ids | list | none | Filter by build IDs |
skip_upload | string/bool | none | Skip git push: true or 1 always skips, auto skips for prereleases, false, 0 or empty publishes; a template is rendered and read the same way, in any letter case (see bool-or-template values) |
commit_author | object | none | Git commit author (name, email) |
commit_msg_template | string | auto-generated | Custom commit message (template) |
URL config (url)
| Field | Type | Default | Description |
|---|---|---|---|
template | string | auto-derived | Download URL template |
verified | string | none | Deprecated. Homebrew removed the verified: stanza and now applies its default URL verification. Setting it still parses, logs a deprecation warning, and writes nothing into the cask. |
using | string | none | Download strategy (e.g., :homebrew_curl) |
cookies | map | none | HTTP cookies for the download |
referer | string | none | Referer header |
headers | list | none | Custom HTTP headers |
user_agent | string | none | Custom user agent string |
data | map | none | POST data for form submissions |
A config that still sets url.verified: loads, and every command that
loads it prints one warning per cask that sets it, such as
DEPRECATION: homebrew_casks[0]: `url.verified:` is deprecated; Homebrew removed it (Homebrew/brew#23280) and now uses the default URL verification behavior. anodizer no longer writes it into the cask; remove the field.
anodizer check config then ends with
Config is valid, but uses deprecated properties.
Completions (completions)
| Field | Type | Description |
|---|---|---|
bash | string | Path to bash completion file |
zsh | string | Path to zsh completion file |
fish | string | Path to fish completion file |
Uninstall / Zap (uninstall, zap)
| Field | Type | Description |
|---|---|---|
launchctl | list | Launch agent/daemon identifiers to stop |
quit | list | Application bundle IDs to quit |
login_item | list | Login item names to remove |
delete | list | File paths to delete |
trash | list | File paths to trash (preserves app state) |
Hooks (hooks)
homebrew_casks:
- name: myapp
hooks:
pre:
install: "system_command '/usr/bin/some-setup'"
uninstall: "system_command '/usr/bin/some-cleanup'"
post:
install: "system_command '/usr/bin/post-setup'"
uninstall: "system_command '/usr/bin/post-cleanup'"
Each hook is written as a preflight do / postflight do /
uninstall_preflight do / uninstall_postflight do block holding the Ruby
as given. Homebrew 7 deprecates these blocks in favour of preflight_steps
and its siblings, which accept only Homebrew's own step calls and no
arbitrary Ruby, so brew style reports Cask/InstallSteps for each hook. The
cask still installs; Homebrew prints a deprecation warning when it loads it.
Generated completions (generate_completions_from_executable)
| Field | Type | Description |
|---|---|---|
executable | string | Binary to generate completions from |
args | list | Arguments to pass to the executable |
base_name | string | Base name for completion files |
shell_parameter_format | string | Completion framework type (arg, clap, cobra, etc.) |
shells | list | Target shells (bash, zsh, fish, pwsh) |
Dependencies (dependencies)
Each entry can specify either cask or formula. The cask lists casks
first, then formulae, each group sorted by name without regard to case
with the names written as given, the order brew style requires:
homebrew_casks:
- name: myapp
dependencies:
- formula: cmake
- cask: xquartz
- cask: Example/tap/app depends_on cask: "Example/tap/app"
depends_on cask: "xquartz"
depends_on formula: "cmake"
depends_on :macos
depends_on :macos joins the group whenever the cask has no Linux side.
Homebrew installs a cask on Linux unless it depends on macOS, so without the
line a cask of macOS binaries would install a Mach-O executable on a Linux
host. A cask has a Linux side when the release ships Linux artifacts (an
on_linux block) or its custom_block gives it one. The line is also left
out when the custom_block declares an OS dependency of its own, because
Homebrew refuses a depends_on :macos beside a versioned
depends_on macos:.
custom_block parsing
custom_block is raw Ruby, written at the top of the cask body. It may hold
any Ruby a cask accepts: stanzas, on_* blocks, depends_on statements,
locals, methods, heredocs, multi-line strings, percent literals and
comments. anodizer reads it as Ruby code to answer two questions:
- Does it give the cask a Linux side? Yes when
on_linux,on_systemorapp_imageappears as a whole word in the code, at any depth:self.on_linux do,(on_linux doand a one-lineon_arm do on_linux do … end endall count. - Does it declare an OS dependency? Yes when a
depends_onstatement names the keymacos:,maximum_macos:orlinux:, or the symbol:macosor:linux, as a whole word. A statement starts wheredepends_onis the first word of a line or of a;-separated statement, after any opening(. It continues onto the next line while the line ends with,,(,[,{,|,.,&&,||,=>or\, while a string or literal is still open, or while more brackets are open than closed.
Words inside a string, heredoc body, percent literal (%q(…), %w[…] and
the rest), ?x character literal, regex or comment (# and
=begin … =end) do not count. Code inside #{…} in a literal that
interpolates does count, read as statements of its own: "#{on_linux}"
names a Linux side, "#{depends_on macos: :ventura}" an OS dependency, and
'#{on_linux}' neither.
custom_block text | An OS dependency |
|---|---|
depends_on macos: ">= :big_sur" | yes |
depends_on arch: :arm64, / macos: ">= :ventura" on two lines | yes |
depends_on(formula: "a)b", / macos: ">= :ventura") on two lines | yes |
depends_on cask: [ / "a", / ], macos: :ventura on three lines | yes |
depends_on formula: %q(a#b), macos: :ventura | yes |
depends_on formula: "x"; depends_on macos: :ventura | yes |
depends_on :formula => / "x", :macos => :ventura on two lines | yes |
caveats "a / b"; depends_on macos: :ventura on two lines | yes |
(depends_on macos: :ventura) | yes |
depends_on formula: "#{a; b}", macos: :ventura | yes: the ; is inside the #{…} |
depends_on formula: "jq" # needs :macos 13 | no: the OS is in the comment |
depends_on cask: ":macos" | no: the OS is in a string |
# depends_on macos: ">= :ventura" | no: the line is a comment |
caveats "this depends_on macos: newer" | no: depends_on is in a string |
A flat single-download cask whose custom_block gives it a Linux side puts
its sha256 / url (and app / service) inside on_macos, so a Linux
host never downloads the macOS archive.
Unterminated blocks
In Ruby, <<, %, ? and / open a heredoc, a percent literal, a
character literal or a regex where an operand stands, and are an operator
after a value. anodizer tracks the locals, parameters and method names the
block defines to tell the two apart. It stops trusting the code from a line
on when:
- a string or literal opened on that line is still open after the last line of the block;
- one of those four characters follows a word and a space that could be a
method or a local anodizer did not see assigned, and reading
it as an opener would start a literal that spans several lines
(
n = width %-2, with a-further down); - a block or method parameter still in scope is followed by a
<<whose heredoc tag closes on a later line ([1].each do |caveats|thencaveats <<~EOSinside the block).
anodizer then reads the whole block as raw text, comments and strings
included, which may over-match: a Linux side when on_linux, on_system
or app_image appears anywhere in the block, and an OS dependency when
depends_on and an OS key or symbol both do. A word scan that finds a
Linux-side word leaves depends_on :macos out and moves a flat download
into on_macos; one that finds a depends_on OS key leaves the bare
dependency out; one that finds neither adds depends_on :macos. The render
prints one warning per command, unless depends_on_macos: is set:
homebrew cask 'mytool': custom_block could not be read past line 2 (the '%' there could open a percent literal or be an operator); the Linux-side and depends_on checks fell back to a word scan, which may over-match — set depends_on_macos: to decide it, or … (an unclosed string); … for a literal
open at the end of the block.
These are read wrongly, and nothing warns about them:
- a stanza built at runtime (an
on_linuxsent throughsend, or a method made withdefine_method) is not seen; - a
depends_onthat follows adoon the same line (on_macos do depends_on macos: :ventura end) is not seen; - an operator after a word anodizer cannot classify, whose literal would
close on the same line (
x = width %(a) + 1), is read as that literal.
Indentation
anodizer moves the block to the cask's indentation: the indentation its
code lines share is removed and each line that begins in code is indented
for the cask body, so a flush-left YAML block scalar and a pre-indented one
render the same. A line that begins inside a multi-line string, percent
literal, regex, heredoc body or =begin comment, and the closing tag of a
<< or <<- heredoc, is kept byte for byte, since moving it would change
the literal or leave the heredoc unclosed. Trailing whitespace is dropped
only from a line that ends in code. Past a line anodizer cannot read, every
line is kept as written.
Casks Homebrew refuses
A wrong answer gives a cask that Homebrew refuses:
- A download inside
on_macoswith no real Linux block and nodepends_on :macosfails to load on Linux withMissing Linux stanzas can leave Linux sha256 as nil. Add depends_on :macos. - A
depends_on :macosbeside a real Linux side the scan could not see loads, and a Linux install stops withThis cask requires macOS. - A
depends_on :macosbeside adepends_on macos:the scan could not see fails to load on every system withCalling combining `depends_on :macos` with a versioned macOS dependency is disabled!
Set depends_on_macos: when the scan is wrong for your custom_block:
homebrew_casks:
- name: mytool
binaries: [mytool]
# The Linux side is sent at runtime, so the scan does not see it.
custom_block: |
send("on_linux") do
depends_on formula: "jq"
end
depends_on_macos: false# This file was generated by anodizer (https://github.com/tj-smith47/anodizer). DO NOT EDIT.
cask "mytool" do
send("on_linux") do
depends_on formula: "jq"
end
version "1.2.3"
on_macos do
sha256 "2222222222222222222222222222222222222222222222222222222222222222"
url "https://github.com/myorg/myapp/releases/download/v#{version}/myapp-darwin-arm64.tar.gz"
end
name "mytool"
livecheck do
skip "Auto-generated on release."
end
binary "mytool"
end
true renders depends_on :macos and keeps a flat download at the top
level. false renders no OS dependency and places a flat download inside
on_macos, for a custom_block whose Linux side the scan cannot see. Left
unset, the scan decides. A per-crate cask (publish.homebrew_cask: or
publish.homebrew.cask:) takes the same field.
Conflicts (conflicts)
Homebrew casks can only conflict with other casks, so set cask on each
entry. A formula entry is dropped with a deprecation warning, because
conflicts_with formula: makes the cask fail to load:
homebrew_casks:
- name: myapp
conflicts:
- cask: another-appLivecheck (livecheck)
By default the cask emits livecheck do skip "Auto-generated on release." end:
a binary cask's url/sha256 are rewritten on every release, so there is
nothing stable for brew livecheck to poll. Setting any of strategy, url
or regex turns on active version detection. For a GitHub-released project,
github_latest against the cask's own url stanza (:url) is the usual
pairing, and :url is also what an active livecheck reads when url is unset:
homebrew_casks:
- name: myapp
repository:
owner: myorg
name: homebrew-tap
livecheck:
strategy: github_latest
renders into the cask:
livecheck do
url :url
strategy :github_latest
end| Field | Type | Default | Description |
|---|---|---|---|
strategy | string | none | Livecheck strategy symbol (e.g. github_latest, git, page_match) |
url | string | url | url or homepage symbol, or a literal URL string |
regex | string | none | Raw Ruby regex (e.g. %r{v(\d+\.\d+)}i) for page_match-style strategies |
skip | bool | auto | true forces the skip stanza; with skip unset the stanza is active when any of strategy/url/regex is set and skips otherwise |
skip_reason | string | Auto-generated on release. | Custom message for the skip stanza |
url takes url (url :url, the cask's download URL), homepage
(url :homepage) or a literal URL string (url "https://…"). Homebrew
resolves :stable and :head for a formula only, so the cask stage fails
with an error naming the field when url is stable or head. Setting
skip: false without any of strategy/url/regex falls back to skip
with a warning, because an empty livecheck do … end is invalid.
Multi-architecture casks
When a release builds more than one macOS architecture (typically
darwin/amd64 for Intel Macs plus darwin/arm64 for Apple Silicon), anodizer
emits a cask body with per-architecture on_intel / on_arm stanzas. Each
stanza carries its own url and sha256, so brew install serves every Mac
host the binary built for its CPU. For this config and a release with
darwin/amd64 and darwin/arm64 archives:
homebrew_casks:
- name: myapp
repository:
owner: myorg
name: homebrew-tap
the cask reads:
# This file was generated by anodizer (https://github.com/tj-smith47/anodizer). DO NOT EDIT.
cask "myapp" do
version "1.2.3"
on_macos do
on_arm do
sha256 "2222222222222222222222222222222222222222222222222222222222222222"
url "https://github.com/myorg/myapp/releases/download/v#{version}/myapp-darwin-arm64.tar.gz"
end
on_intel do
sha256 "1111111111111111111111111111111111111111111111111111111111111111"
url "https://github.com/myorg/myapp/releases/download/v#{version}/myapp-darwin-amd64.tar.gz"
end
end
name "myapp"
livecheck do
skip "Auto-generated on release."
end
depends_on :macos
binary "myapp"
end
The version substring in each URL is rewritten to #{version} so Homebrew
auto-updates the download on the next release. The url/using and other
URL config values you set apply inside every per-arch block.
This emission is automatic — there is no flag to enable it. anodizer decides the shape from the artifacts present in the release:
-
Multiple macOS architectures → per-arch
on_intel/on_armblocks (the shape above). The same mechanism handles Linux casks: adarwin/amd64+darwin/arm64+linux/amd64release produces anon_macosblock (with two arch entries) and anon_linuxblock. -
One macOS architecture → a flat top-level
url/sha256, with noon_intel/on_armwrappers:# This file was generated by anodizer (https://github.com/tj-smith47/anodizer). DO NOT EDIT. cask "myapp" do version "1.2.3" sha256 "2222222222222222222222222222222222222222222222222222222222222222" url "https://github.com/myorg/myapp/releases/download/v#{version}/myapp-darwin-arm64.tar.gz" name "myapp" livecheck do skip "Auto-generated on release." end depends_on :macos binary "myapp" end
Each OS×arch slot is filled by the first artifact found in kind precedence
order: disk_image (.dmg) > archive (.tar.gz/.zip) > uploadable
binary. The first kind that supplies a given slot wins, so a release that
produces both a .dmg and a .tar.gz per arch fills the cask from the .dmg.
Dedup is per-OS, so a macOS intel entry never suppresses a Linux intel
entry.
Every artifact filling a slot must carry sha256 metadata: a cask block
with an empty sha256 "" line fails brew style and aborts brew install
(Homebrew verifies the digest before extracting), so a missing checksum is a
hard error.
Interaction with universal_binaries
A lipo'd universal binary has the synthetic darwin-universal target
(architecture all) and serves every Mac. In the cask it fills whichever of
the on_arm / on_intel slots no per-arch macOS artifact fills: beside an
arm64 build alone, on_arm downloads the arm64 build and on_intel the
universal one. The universal artifact fills that slot only when it and the
per-arch artifact carry the same build id; when the ids differ or either one
has none, it is left out and -v names it as skipped. When both slots are filled the
universal artifact is left out, and -v prints:
skipped universal artifact 'myapp-darwin-universal.tar.gz' — both macOS architectures have their own download
Which shape the cask takes depends on universal_binaries.replace:
-
replace: false(or unset) → the per-archamd64andarm64artifacts stay in the catalog and the universal one is marked as not replacing them, so the cask leaves it out and renders theon_intel+on_armbody above. -
replace: true→ the per-arch macOS artifacts are removed once the universal binary is built. A macOS-only release then gets the flat top-levelurl/sha256, pointing at the universal binary. A release that also ships Linux artifacts puts the universal binary'ssha256/urldirectly insideon_macos, beside the per-archon_linuxblocks. For the config above and adarwin-universal+linux/amd64+linux/arm64release:# This file was generated by anodizer (https://github.com/tj-smith47/anodizer). DO NOT EDIT. cask "myapp" do version "1.2.3" on_macos do sha256 "3333333333333333333333333333333333333333333333333333333333333333" url "https://github.com/myorg/myapp/releases/download/v#{version}/myapp-darwin-universal.tar.gz" end on_linux do on_arm do sha256 "5555555555555555555555555555555555555555555555555555555555555555" url "https://github.com/myorg/myapp/releases/download/v#{version}/myapp-linux-arm64.tar.gz" end on_intel do sha256 "4444444444444444444444444444444444444444444444444444444444444444" url "https://github.com/myorg/myapp/releases/download/v#{version}/myapp-linux-amd64.tar.gz" end end name "myapp" livecheck do skip "Auto-generated on release." end binary "myapp" end
So if you want a multi-arch cask with explicit on_intel / on_arm blocks,
keep replace: false; the universal binary then ships through other channels
while the cask serves each Mac its native slice.
Behavior
- Looks for macOS artifacts (
disk_image,archiveor uploadable binary), and Linux ones for anon_linuxblock - Requires SHA256 checksum metadata on the artifact
- Emits per-arch
on_intel/on_armblocks for multi-arch macOS releases, with a universal binary filling a slot no per-arch build covers; a single macOS arch, or a universal binary alone, renders a flaturl/sha256(insideon_macoswhen the cask also has a Linux side) - Clones the tap repository, writes the cask file, commits, and pushes
- Default commit message:
"Brew cask update for {{ ProjectName }} version {{ Tag }}"
Full example
homebrew_casks:
- name: myapp
repository:
owner: myorg
name: homebrew-tap
directory: Casks
description: "My awesome application"
homepage: "https://example.com/myapp"
license: MIT
app: "MyApp.app"
uninstall:
quit:
- com.myorg.myapp
delete:
- "/Applications/MyApp.app"
zap:
trash:
- "~/Library/Preferences/com.myorg.myapp.plist"Artifact eligibility
anodizer generates a cask from genuine macOS targets (*-apple-darwin,
darwin-universal), and adds the release's Linux artifacts as an on_linux
block beside them. Apple non-macOS targets (aarch64-apple-ios, *-tvos,
*-watchos) are excluded and never appear in the generated cask. If the build
produces no eligible macOS artifact, the cask is skipped and no cask file
is written; --show-skipped prints the reason:
skipped cask 'myapp' — no macOS artifact in scope (not applicable)
The cask fails only when its ids: filter matches no macOS artifact while
other macOS artifacts exist, since that is almost always a typo in ids:. See
Artifact eligibility for the
full rule.