2024-08-12 10:30:59 +01:00
|
|
|
# typed: true # rubocop:disable Sorbet/StrictSigil
|
2023-04-10 16:18:56 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Homebrew
|
2024-03-18 12:31:44 -07:00
|
|
|
module DevCmd
|
|
|
|
class Bottle < AbstractCommand
|
|
|
|
undef tar_args
|
2024-02-19 14:05:12 +00:00
|
|
|
|
2024-03-18 12:31:44 -07:00
|
|
|
sig { returns(T::Array[String]) }
|
|
|
|
def tar_args
|
|
|
|
if MacOS.version >= :catalina
|
|
|
|
["--no-mac-metadata", "--no-acls", "--no-xattrs"].freeze
|
|
|
|
else
|
|
|
|
[].freeze
|
|
|
|
end
|
2024-02-18 15:03:00 -08:00
|
|
|
end
|
2023-08-04 10:02:44 +01:00
|
|
|
|
2024-03-18 12:31:44 -07:00
|
|
|
undef gnu_tar
|
2024-02-19 14:05:12 +00:00
|
|
|
|
2024-03-18 12:31:44 -07:00
|
|
|
sig { params(gnu_tar_formula: Formula).returns(String) }
|
|
|
|
def gnu_tar(gnu_tar_formula)
|
|
|
|
"#{gnu_tar_formula.opt_bin}/gtar"
|
|
|
|
end
|
2024-02-18 15:03:00 -08:00
|
|
|
end
|
2023-08-04 10:02:44 +01:00
|
|
|
end
|
2023-04-10 16:18:56 -04:00
|
|
|
end
|