9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/fastlane/actions/cert.rb', line 9
def self.run(params)
require 'cert'
return if Helper.test?
Dir.chdir(FastlaneFolder.path || Dir.pwd) do
Cert::CertRunner.run
cert_file_path = ENV["CER_FILE_PATH"]
certificate_id = ENV["CER_CERTIFICATE_ID"]
Actions.lane_context[SharedValues::CERT_FILE_PATH] = cert_file_path
Actions.lane_context[SharedValues::CERT_CERTIFICATE_ID] = certificate_id
installed = Cert::CertChecker.is_installed?cert_file_path
raise "Could not find the newly generated certificate installed" unless installed
Helper.log.info("Use signing certificate '#{certificate_id}' from now on!".green)
ENV["SIGH_CERTIFICATE_ID"] = certificate_id
end
end
|