mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-17 06:16:47 -06:00
* `app`, `suite`, and `artifact no longer implemented as synonyms for `link` * backward-compatible code/comments removed * creates class `Cask::Artifact::Suite` * updates `brew cask info` to show specific artifact type * fixes stray "Generic artifact" messages
18 lines
437 B
Ruby
18 lines
437 B
Ruby
module Cask::Staged
|
|
def info_plist
|
|
"#{staged_path}/#{@cask.artifacts[:app].first.first}/Contents/Info.plist"
|
|
end
|
|
|
|
def plist_exec(cmd)
|
|
# todo: don't use external interface system_command
|
|
system_command("/usr/libexec/PlistBuddy", :args => ["-c", cmd, info_plist])
|
|
end
|
|
|
|
def plist_set(key, value)
|
|
plist_exec("Set #{key} #{value}")
|
|
end
|
|
|
|
def bundle_identifier
|
|
plist_exec("Print CFBundleIdentifier")
|
|
end
|
|
end
|