sigh 0.10.4 → 0.10.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/assets/resign.sh +7 -2
- data/lib/sigh/manager.rb +2 -19
- data/lib/sigh/version.rb +1 -1
- metadata +28 -29
- data/lib/sigh/profile_analyser.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 719433d248e3348c746d24ec70efe464e96d66d4
|
4
|
+
data.tar.gz: 129ad1e1fb5a88c6d974067320231e222de784c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 399fa43b961d863fe5a3b712900c85ec60dbf4e1c540b630273befb4aa3473cf478d5f2ce28d5a6630ec4d04a9d94ea0167aae9384033a3d68e7a84ab970a7e9
|
7
|
+
data.tar.gz: 54a4f8db15051cff6abdcbf5442e660ab91cfe3afc7945b0d494b92dce20ce44435c261c0c4f92c2fa8de0a75348096c4b75a65b205652e8866ac39430e095a5
|
data/lib/assets/resign.sh
CHANGED
@@ -362,13 +362,18 @@ else
|
|
362
362
|
# checkStatus -- if this fails it's likely because the keychain-access-groups key does not exist, so we have nothing to update
|
363
363
|
if [[ "$CERTIFICATE" == *Distribution* ]]; then
|
364
364
|
IS_ENTERPRISE_PROFILE=`PlistBuddy -c "Print :ProvisionsAllDevices" "$TEMP_DIR/profile.plist" | tr -d '\n'`
|
365
|
+
ADHOC_PROVISIONING_DEVICES=`PlistBuddy -c "Print :ProvisionedDevices" "$TEMP_DIR/profile.plist" | tr -d '\n'`
|
365
366
|
|
366
367
|
echo "Assuming Distribution Identity"
|
367
368
|
if [ "$ADJUST_BETA_REPORTS_ACTIVE_FLAG" == "1" ]; then
|
368
369
|
if [ "$IS_ENTERPRISE_PROFILE" == "true" ]; then
|
369
370
|
echo "Ensuring beta-reports-active is not included for Enterprise environment"
|
370
|
-
PlistBuddy -c "Delete :beta-reports-active" "$TEMP_DIR/newEntitlements"
|
371
|
-
|
371
|
+
PlistBuddy -c "Delete :beta-reports-active" "$TEMP_DIR/newEntitlements" || true
|
372
|
+
# checkStatus -- this can fail is beta-reports-active isn't present, which is OK
|
373
|
+
elif [ -n "$ADHOC_PROVISIONING_DEVICES" ]; then
|
374
|
+
echo "Ensuring beta-reports-active is not included for Adhoc environment"
|
375
|
+
PlistBuddy -c "Delete :beta-reports-active" "$TEMP_DIR/newEntitlements" || true
|
376
|
+
# checkStatus -- this can fail is beta-reports-active isn't present, which is OK
|
372
377
|
else
|
373
378
|
echo "Ensuring beta-reports-active is present and enabled"
|
374
379
|
# new beta key is only used for Distribution; might not exist yet, if we were building Development
|
data/lib/sigh/manager.rb
CHANGED
@@ -32,27 +32,10 @@ module Sigh
|
|
32
32
|
def self.install_profile(profile)
|
33
33
|
Helper.log.info "Installing provisioning profile..."
|
34
34
|
|
35
|
-
|
36
|
-
udid = Sigh::ProfileAnalyser.run(profile)
|
35
|
+
udid = FastlaneCore::ProvisioningProfile.uuid(profile)
|
37
36
|
ENV["SIGH_UDID"] = udid if udid
|
38
37
|
|
39
|
-
|
40
|
-
profile_filename = ENV["SIGH_UDID"] + ".mobileprovision"
|
41
|
-
destination = profile_path + profile_filename
|
42
|
-
|
43
|
-
# If the directory doesn't exist, make it first
|
44
|
-
unless File.directory?(profile_path)
|
45
|
-
FileUtils.mkdir_p(profile_path)
|
46
|
-
end
|
47
|
-
|
48
|
-
# copy to Xcode provisioning profile directory
|
49
|
-
(FileUtils.copy profile, destination rescue nil) # if the directory doesn't exist yet
|
50
|
-
|
51
|
-
if File.exists? destination
|
52
|
-
Helper.log.info "Profile successfully installed".green
|
53
|
-
else
|
54
|
-
raise "Failed installation of provisioning profile at location: #{destination}".red
|
55
|
-
end
|
38
|
+
FastlaneCore::ProvisioningProfile.install(profile)
|
56
39
|
end
|
57
40
|
end
|
58
41
|
end
|
data/lib/sigh/version.rb
CHANGED
metadata
CHANGED
@@ -1,153 +1,153 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sigh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane_core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.14.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.14.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: plist
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.1
|
33
|
+
version: '3.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.1
|
40
|
+
version: '3.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: spaceship
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 0.0.14
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.0.14
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 3.1.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 3.1.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: pry
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: yard
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - ~>
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: 0.8.7.4
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - ~>
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 0.8.7.4
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: webmock
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - ~>
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: 1.19.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - ~>
|
136
|
+
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 1.19.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: codeclimate-test-reporter
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- -
|
143
|
+
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
description: Because you would rather spend your time building stuff than fighting
|
@@ -169,7 +169,6 @@ files:
|
|
169
169
|
- lib/sigh/local_manage.rb
|
170
170
|
- lib/sigh/manager.rb
|
171
171
|
- lib/sigh/options.rb
|
172
|
-
- lib/sigh/profile_analyser.rb
|
173
172
|
- lib/sigh/repair.rb
|
174
173
|
- lib/sigh/resign.rb
|
175
174
|
- lib/sigh/spaceship/runner.rb
|
@@ -184,12 +183,12 @@ require_paths:
|
|
184
183
|
- lib
|
185
184
|
required_ruby_version: !ruby/object:Gem::Requirement
|
186
185
|
requirements:
|
187
|
-
- -
|
186
|
+
- - ">="
|
188
187
|
- !ruby/object:Gem::Version
|
189
188
|
version: 2.0.0
|
190
189
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
190
|
requirements:
|
192
|
-
- -
|
191
|
+
- - ">="
|
193
192
|
- !ruby/object:Gem::Version
|
194
193
|
version: '0'
|
195
194
|
requirements: []
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'plist'
|
2
|
-
|
3
|
-
module Sigh
|
4
|
-
class ProfileAnalyser
|
5
|
-
def self.run(path)
|
6
|
-
plist = Plist::parse_xml(`security cms -D -i '#{path}'`)
|
7
|
-
if plist.count > 10
|
8
|
-
Helper.log.info("Provisioning profile of app '#{plist['AppIDName']}' with the name '#{plist['Name']}' successfully analysed.".green)
|
9
|
-
return plist["UUID"]
|
10
|
-
else
|
11
|
-
Helper.log.error("Error parsing provisioning profile at path '#{path}'".red)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|