cert 1.4.3 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/cert.rb +0 -1
- data/lib/cert/options.rb +11 -6
- data/lib/cert/runner.rb +8 -4
- data/lib/cert/version.rb +1 -1
- metadata +9 -10
- data/lib/cert/keychain_importer.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c0a9402d68423c24198bf2ecdb6782df3c99d18
|
4
|
+
data.tar.gz: 5f9aea5d0c78b13154eabe65b40b14ed152f0908
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7b446fde1bdee8113d876d154902c3e096dd2dc1d53c7a266d898f8582aa7a1fa511e889d624e65f4f0e88ebbb7d93ffc7bb14f84209dfd09895cd67aa06c55
|
7
|
+
data.tar.gz: f29c7b9358b554050d5f0f13674294f66ba684590de89bf1e46e078eb6daac1bee2edf6e52dabb071e19e1f3294f2325919ca909ff617ba2ad34b7f62bc42f0e
|
data/README.md
CHANGED
@@ -51,7 +51,7 @@ Get in contact with the developers on Twitter: [@FastlaneTools](https://twitter.
|
|
51
51
|
|
52
52
|
-------
|
53
53
|
|
54
|
-
<h5 align="center"><code>cert</code> is part of <a href="https://fastlane.tools">fastlane</a>: The easiest way to automate
|
54
|
+
<h5 align="center"><code>cert</code> is part of <a href="https://fastlane.tools">fastlane</a>: The easiest way to automate beta deployments and releases for your iOS and Android apps.</h5>
|
55
55
|
|
56
56
|
|
57
57
|
|
@@ -132,7 +132,7 @@ This will result in `sigh` always using the correct signing certificate, which i
|
|
132
132
|
|
133
133
|
## [`fastlane`](https://fastlane.tools) Toolchain
|
134
134
|
|
135
|
-
- [`fastlane`](https://fastlane.tools): The easiest way to automate
|
135
|
+
- [`fastlane`](https://fastlane.tools): The easiest way to automate beta deployments and releases for your iOS and Android apps
|
136
136
|
- [`deliver`](https://github.com/fastlane/fastlane/tree/master/deliver): Upload screenshots, metadata and your app to the App Store
|
137
137
|
- [`snapshot`](https://github.com/fastlane/fastlane/tree/master/snapshot): Automate taking localized screenshots of your iOS app on every device
|
138
138
|
- [`frameit`](https://github.com/fastlane/fastlane/tree/master/frameit): Quickly put your screenshots into the right device frames
|
data/lib/cert.rb
CHANGED
data/lib/cert/options.rb
CHANGED
@@ -27,19 +27,19 @@ module Cert
|
|
27
27
|
short_option: "-b",
|
28
28
|
env_name: "CERT_TEAM_ID",
|
29
29
|
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:team_id),
|
30
|
-
description: "The ID of your team if you're in multiple teams",
|
30
|
+
description: "The ID of your Developer Portal team if you're in multiple teams",
|
31
31
|
optional: true,
|
32
32
|
verify_block: proc do |value|
|
33
|
-
ENV["FASTLANE_TEAM_ID"] = value
|
33
|
+
ENV["FASTLANE_TEAM_ID"] = value.to_s
|
34
34
|
end),
|
35
35
|
FastlaneCore::ConfigItem.new(key: :team_name,
|
36
36
|
short_option: "-l",
|
37
37
|
env_name: "CERT_TEAM_NAME",
|
38
|
-
description: "The name of your team if you're in multiple teams",
|
38
|
+
description: "The name of your Developer Portal team if you're in multiple teams",
|
39
39
|
optional: true,
|
40
40
|
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:team_name),
|
41
41
|
verify_block: proc do |value|
|
42
|
-
ENV["FASTLANE_TEAM_NAME"] = value
|
42
|
+
ENV["FASTLANE_TEAM_NAME"] = value.to_s
|
43
43
|
end),
|
44
44
|
FastlaneCore::ConfigItem.new(key: :output_path,
|
45
45
|
short_option: "-o",
|
@@ -50,11 +50,16 @@ module Cert
|
|
50
50
|
short_option: "-k",
|
51
51
|
env_name: "CERT_KEYCHAIN_PATH",
|
52
52
|
description: "Path to a custom keychain",
|
53
|
-
default_value: Dir["#{Dir.home}/Library/Keychains/login.keychain"].last,
|
53
|
+
default_value: Dir["#{Dir.home}/Library/Keychains/login.keychain", "#{Dir.home}/Library/Keychains/login.keychain-db"].last,
|
54
54
|
verify_block: proc do |value|
|
55
55
|
value = File.expand_path(value)
|
56
56
|
UI.user_error!("Keychain not found at path '#{value}'") unless File.exist?(value)
|
57
|
-
end)
|
57
|
+
end),
|
58
|
+
FastlaneCore::ConfigItem.new(key: :keychain_password,
|
59
|
+
short_option: "-p",
|
60
|
+
env_name: "CERT_KEYCHAIN_PASSWORD",
|
61
|
+
description: "This might be required the first time you access certificates on a new mac. For the login/default keychain this is your account password",
|
62
|
+
optional: true)
|
58
63
|
]
|
59
64
|
end
|
60
65
|
end
|
data/lib/cert/runner.rb
CHANGED
@@ -94,8 +94,10 @@ module Cert
|
|
94
94
|
|
95
95
|
return path
|
96
96
|
elsif File.exist?(private_key_path)
|
97
|
-
|
98
|
-
|
97
|
+
keychain = File.expand_path(Cert.config[:keychain_path])
|
98
|
+
password = Cert.config[:keychain_password]
|
99
|
+
FastlaneCore::KeychainImporter.import_file(private_key_path, keychain, keychain_password: password)
|
100
|
+
FastlaneCore::KeychainImporter.import_file(path, keychain, keychain_password: password)
|
99
101
|
|
100
102
|
ENV["CER_CERTIFICATE_ID"] = certificate.id
|
101
103
|
ENV["CER_FILE_PATH"] = path
|
@@ -155,8 +157,10 @@ module Cert
|
|
155
157
|
cert_path = store_certificate(certificate)
|
156
158
|
|
157
159
|
# Import all the things into the Keychain
|
158
|
-
|
159
|
-
|
160
|
+
keychain = File.expand_path(Cert.config[:keychain_path])
|
161
|
+
password = Cert.config[:keychain_password]
|
162
|
+
FastlaneCore::KeychainImporter.import_file(private_key_path, keychain, keychain_password: password)
|
163
|
+
FastlaneCore::KeychainImporter.import_file(cert_path, keychain, keychain_password: password)
|
160
164
|
|
161
165
|
# Environment variables for the fastlane action
|
162
166
|
ENV["CER_CERTIFICATE_ID"] = certificate.id
|
data/lib/cert/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10
|
11
|
+
date: 2016-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane_core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.55.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 1.0.0
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.55.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.0
|
@@ -36,7 +36,7 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 0.
|
39
|
+
version: 0.37.0
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: 1.0.0
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
requirements:
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.
|
49
|
+
version: 0.37.0
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: 1.0.0
|
@@ -182,14 +182,14 @@ dependencies:
|
|
182
182
|
requirements:
|
183
183
|
- - "~>"
|
184
184
|
- !ruby/object:Gem::Version
|
185
|
-
version: 0.
|
185
|
+
version: 0.44.0
|
186
186
|
type: :development
|
187
187
|
prerelease: false
|
188
188
|
version_requirements: !ruby/object:Gem::Requirement
|
189
189
|
requirements:
|
190
190
|
- - "~>"
|
191
191
|
- !ruby/object:Gem::Version
|
192
|
-
version: 0.
|
192
|
+
version: 0.44.0
|
193
193
|
description: Create new iOS code signing certificates
|
194
194
|
email:
|
195
195
|
- cert@krausefx.com
|
@@ -203,7 +203,6 @@ files:
|
|
203
203
|
- bin/cert
|
204
204
|
- lib/cert.rb
|
205
205
|
- lib/cert/commands_generator.rb
|
206
|
-
- lib/cert/keychain_importer.rb
|
207
206
|
- lib/cert/options.rb
|
208
207
|
- lib/cert/runner.rb
|
209
208
|
- lib/cert/version.rb
|
@@ -227,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
226
|
version: '0'
|
228
227
|
requirements: []
|
229
228
|
rubyforge_project:
|
230
|
-
rubygems_version: 2.
|
229
|
+
rubygems_version: 2.5.1
|
231
230
|
signing_key:
|
232
231
|
specification_version: 4
|
233
232
|
summary: Create new iOS code signing certificates
|
@@ -1,14 +0,0 @@
|
|
1
|
-
module Cert
|
2
|
-
class KeychainImporter
|
3
|
-
def self.import_file(path)
|
4
|
-
UI.user_error!("Could not find file '#{path}'") unless File.exist?(path)
|
5
|
-
keychain = File.expand_path(Cert.config[:keychain_path])
|
6
|
-
|
7
|
-
command = "security import #{path.shellescape} -k '#{keychain}'"
|
8
|
-
command << " -T /usr/bin/codesign" # to not be asked for permission when running a tool like `gym`
|
9
|
-
command << " -T /usr/bin/security"
|
10
|
-
|
11
|
-
Helper.backticks(command)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|