cask/artifact: fix up some definitions

And expand the list of artifacts that target: works with.
This commit is contained in:
EricFromCanada 2023-04-14 15:47:33 -04:00
parent 2816c1274f
commit b9dab243b5
No known key found for this signature in database
GPG Key ID: 179D9CDDDB814168
5 changed files with 14 additions and 6 deletions

View File

@ -82,6 +82,7 @@ module Cask
Service, Service,
InputMethod, InputMethod,
InternetPlugin, InternetPlugin,
KeyboardLayout,
AudioUnitPlugin, AudioUnitPlugin,
VstPlugin, VstPlugin,
Vst3Plugin, Vst3Plugin,

View File

@ -11,11 +11,6 @@ module Cask
class KeyboardLayout < Moved class KeyboardLayout < Moved
extend T::Sig extend T::Sig
sig { returns(String) }
def self.english_name
"Keyboard Layout"
end
def install_phase(**options) def install_phase(**options)
super(**options) super(**options)
delete_keyboard_layout_cache(**options) delete_keyboard_layout_cache(**options)

View File

@ -9,6 +9,12 @@ module Cask
# #
# @api private # @api private
class Vst3Plugin < Moved class Vst3Plugin < Moved
extend T::Sig
sig { returns(String) }
def self.english_name
"VST3 Plugin"
end
end end
end end
end end

View File

@ -9,6 +9,12 @@ module Cask
# #
# @api private # @api private
class VstPlugin < Moved class VstPlugin < Moved
extend T::Sig
sig { returns(String) }
def self.english_name
"VST Plugin"
end
end end
end end
end end

View File

@ -267,7 +267,7 @@ artifact "sapmachine-jdk-#{version}.jdk", target: "/Library/Java/JavaVirtualMach
#### *target* Works on Most Artifact Types #### *target* Works on Most Artifact Types
The `target:` key works similarly for most cask artifacts, such as `app`, `binary`, `colorpicker`, `dictionary`, `font`, `input_method`, `prefpane`, `qlplugin`, `mdimporter`, `service`, `suite`, and `artifact`. The `target:` key works similarly for most cask artifacts, such as `app`, `binary`, `colorpicker`, `dictionary`, `font`, `input_method`, `internet_plugin`, `keyboard_layout`, `prefpane`, `qlplugin`, `mdimporter`, `screen_saver`, `service`, `suite`, `audio_unit_plugin`, `vst_plugin`, `vst3_plugin`, and `artifact`.
#### *target* Should Only Be Used in Select Cases #### *target* Should Only Be Used in Select Cases