Sha256: fe298fd3335e34e1353d6ad058bea66d771d0f4f71a266b39299ccaf0318abe3
Contents?: true
Size: 1.45 KB
Versions: 66
Compression:
Stored size: 1.45 KB
Contents
require 'shellwords' module Fastlane module Actions class ImportCertificateAction < Action def self.run(params) command = "security import #{params[:certificate_path].shellescape} -k ~/Library/Keychains/#{params[:keychain_name].shellescape}" command << " -P #{params[:certificate_password].shellescape}" if params[:certificate_password] command << " -T /usr/bin/codesign" command << " -T /usr/bin/security" Fastlane::Actions.sh(command, log: false) end def self.description "Import certificate from inputfile into a keychain" end def self.available_options [ FastlaneCore::ConfigItem.new(key: :keychain_name, env_name: "KEYCHAIN_NAME", description: "Keychain the items should be imported to", optional: false), FastlaneCore::ConfigItem.new(key: :certificate_path, description: "Path to certificate", optional: false), FastlaneCore::ConfigItem.new(key: :certificate_password, description: "Certificate password", optional: true) ] end def self.authors ["gin0606"] end def self.is_supported?(platform) true end end end end
Version data entries
66 entries across 66 versions & 1 rubygems