match 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/match.rb +5 -1
- data/lib/match/generator.rb +1 -1
- data/lib/match/nuke.rb +2 -2
- data/lib/match/runner.rb +1 -0
- data/lib/match/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db559e6b927af240f2ece0de8e67b001918d81b0
|
4
|
+
data.tar.gz: 97b99d5cd2992ffabe9ada9f58f634cb98ce84e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b44acc2285c98b2ca5264722eaa90be2b4382552568c451a36793f51ea1115f87641535871118eb91b4e5ced29a3a6d6d98b1b8fffea740eb2616cc103df6c82
|
7
|
+
data.tar.gz: b9cda6beca4af09c630fbf24015d4a7bae0dc68eb85a8bd1a94388094538f3c2e5d0d756857340698ff26b24c0eddbfca7594eb5e2291ca4619c9c5d8ad02f83
|
data/README.md
CHANGED
@@ -270,7 +270,7 @@ You can statically select the right provisioning profile in your Xcode project (
|
|
270
270
|
|
271
271
|
### Nuke
|
272
272
|
|
273
|
-
If you never really cared about code signing and have a messy Apple Developer account with a lot of invalid, expired or Xcode managed profiles/certificates, you can use the `match nuke` command to revoke your certificates and provisioning profiles. Don't worry, apps that are already available in the App Store will still work. After clearing your account you'll start from a clean state, and you can run `match` to generate your certificates and profiles again.
|
273
|
+
If you never really cared about code signing and have a messy Apple Developer account with a lot of invalid, expired or Xcode managed profiles/certificates, you can use the `match nuke` command to revoke your certificates and provisioning profiles. Don't worry, apps that are already available in the App Store will still work. Builds distributed via TestFlight might be disabled after nuking your account, you'll have to re-upload a new build. After clearing your account you'll start from a clean state, and you can run `match` to generate your certificates and profiles again.
|
274
274
|
|
275
275
|
To revoke all certificates and provisioning profiles for a specific environment:
|
276
276
|
|
data/lib/match.rb
CHANGED
@@ -21,7 +21,11 @@ module Match
|
|
21
21
|
|
22
22
|
def self.environments
|
23
23
|
envs = %w(appstore adhoc development)
|
24
|
-
envs << "enterprise" if
|
24
|
+
envs << "enterprise" if self.enterprise?
|
25
25
|
return envs
|
26
26
|
end
|
27
|
+
|
28
|
+
def self.enterprise?
|
29
|
+
ENV["MATCH_FORCE_ENTERPRISE"]
|
30
|
+
end
|
27
31
|
end
|
data/lib/match/generator.rb
CHANGED
@@ -35,7 +35,7 @@ module Match
|
|
35
35
|
def self.generate_provisioning_profile(params: nil, prov_type: nil, certificate_id: nil)
|
36
36
|
require 'sigh'
|
37
37
|
|
38
|
-
prov_type = :enterprise if
|
38
|
+
prov_type = :enterprise if Match.enterprise? && ENV["SIGH_PROFILE_ENTERPRISE"]
|
39
39
|
profile_name = ["match", profile_type_name(prov_type), params[:app_identifier]].join(" ")
|
40
40
|
|
41
41
|
arguments = FastlaneCore::Configuration.create(Sigh::Options.available_options, {
|
data/lib/match/nuke.rb
CHANGED
@@ -170,7 +170,7 @@ module Match
|
|
170
170
|
def certificate_type(type)
|
171
171
|
cert_type = Spaceship.certificate.production
|
172
172
|
cert_type = Spaceship.certificate.development if type == :development
|
173
|
-
cert_type = Spaceship.certificate.in_house if
|
173
|
+
cert_type = Spaceship.certificate.in_house if Match.enterprise? && Spaceship.client.in_house?
|
174
174
|
|
175
175
|
cert_type
|
176
176
|
end
|
@@ -178,7 +178,7 @@ module Match
|
|
178
178
|
# The kind of provisioning profile we're interested in
|
179
179
|
def profile_type(type)
|
180
180
|
profile_type = Spaceship.provisioning_profile.app_store
|
181
|
-
profile_type = Spaceship.provisioning_profile.in_house if
|
181
|
+
profile_type = Spaceship.provisioning_profile.in_house if Match.enterprise? && Spaceship.client.in_house?
|
182
182
|
profile_type = Spaceship.provisioning_profile.ad_hoc if type == :adhoc
|
183
183
|
profile_type = Spaceship.provisioning_profile.development if type == :development
|
184
184
|
|
data/lib/match/runner.rb
CHANGED
@@ -38,6 +38,7 @@ module Match
|
|
38
38
|
def certificate(params: nil)
|
39
39
|
cert_type = :distribution
|
40
40
|
cert_type = :development if params[:type] == "development"
|
41
|
+
cert_type = :enterprise if Match.enterprise? && params[:type] == "enterprise"
|
41
42
|
|
42
43
|
certs = Dir[File.join(params[:workspace], "certs", cert_type.to_s, "*.cer")]
|
43
44
|
keys = Dir[File.join(params[:workspace], "certs", cert_type.to_s, "*.p12")]
|
data/lib/match/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: match
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.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-01-
|
11
|
+
date: 2016-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: security
|