mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

Apply suggestions from code review Co-authored-by: Douglas Eichelberger <697964+dduugg@users.noreply.github.com> feat: add linux appdir Apply suggestions from code review Co-authored-by: Douglas Eichelberger <697964+dduugg@users.noreply.github.com>
26 lines
493 B
Ruby
26 lines
493 B
Ruby
# typed: strict
|
|
# frozen_string_literal: true
|
|
|
|
module OS
|
|
module Linux
|
|
module Cask
|
|
module Installer
|
|
private
|
|
|
|
extend T::Helpers
|
|
|
|
requires_ancestor { ::Cask::Installer }
|
|
|
|
sig { void }
|
|
def check_stanza_os_requirements
|
|
return if artifacts.all?(::Cask::Artifact::Font)
|
|
|
|
raise ::Cask::CaskError, "macOS is required for this software."
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
Cask::Installer.prepend(OS::Linux::Cask::Installer)
|