Sha256: 7e885263498e06db0b94e16fb7a0ff8c22809d1b900a1e904f29209b564741c6
Contents?: true
Size: 610 Bytes
Versions: 15
Compression:
Stored size: 610 Bytes
Contents
#!/usr/bin/env ruby # Stripping a signed Mach-O binary will invalidate the signature. To mimic what strip does on native # Darwin, we install this wrapper to re-sign the binary after stripping it. files = ARGV.reject { |f| f=~/^-/ } strip = "#{File.basename($0)}.bin" strip_options = ARGV.select{|f| f=~/^-/ } strip_arguments = [strip] + strip_options + files codesign = "codesign" # installed into /usr/bin by mk_osxcross.sh codesign_options = ["-f", "-s-"] codesign_arguments = [codesign] + codesign_options + files system(*strip_arguments, exception: true) system(*codesign_arguments, exception: true)
Version data entries
15 entries across 15 versions & 1 rubygems