Sha256: 55a76923904948646ee7241b68d028c812d1d4583dae8c155e4e63c95d2f9cfb
Contents?: true
Size: 1.21 KB
Versions: 201
Compression:
Stored size: 1.21 KB
Contents
require_relative 'helper' module FastlaneCore class KeychainImporter def self.import_file(path, keychain_path, keychain_password: "", certificate_password: "", output: FastlaneCore::Globals.verbose?) UI.user_error!("Could not find file '#{path}'") unless File.exist?(path) command = "security import #{path.shellescape} -k '#{keychain_path.shellescape}'" command << " -P #{certificate_password.shellescape}" command << " -T /usr/bin/codesign" # to not be asked for permission when running a tool like `gym` command << " -T /usr/bin/security" command << " &> /dev/null" unless output Helper.backticks(command, print: output) # When security supports partition lists, also add the partition IDs # See https://openradar.appspot.com/28524119 if Helper.backticks('security -h | grep set-key-partition-list', print: false).length > 0 command = "security set-key-partition-list" command << " -S apple-tool:,apple:" command << " -k #{keychain_password.to_s.shellescape}" command << " #{keychain_path.shellescape}" command << " &> /dev/null" unless output Helper.backticks(command, print: output) end end end end
Version data entries
201 entries across 201 versions & 1 rubygems