sigh 1.1.3 → 1.1.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 +19 -1
- data/lib/sigh/options.rb +6 -3
- data/lib/sigh/runner.rb +19 -0
- data/lib/sigh/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e699702c75c4f175800dac1cbb6179bf4a5b9ce
|
4
|
+
data.tar.gz: 6c6780b7b3d60eaf47aa6a83e8b8752a07fe516b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70eea58f6f42c13d5a49d67c73ed618855c013c83f730a2b34e9428259646e8c38e04383a0db5fd27e18b02e3ef1578ae3c5fa8fd9cbfceb3de626c44d1b8388
|
7
|
+
data.tar.gz: 64b157a23afc80d7aa728011ff94a2a13d544d071f6e08d9b9eef639dc35faece8c44bacd583f8554df81521f96dcad98f23af03b7bda95ac7db72c41e34df74
|
data/README.md
CHANGED
@@ -143,6 +143,24 @@ For a list of available parameters and commands run
|
|
143
143
|
|
144
144
|
sigh --help
|
145
145
|
|
146
|
+
|
147
|
+
### Use with [`fastlane`](https://github.com/fastlane/fastlane)
|
148
|
+
|
149
|
+
`sigh` becomes really interesting when used in [`fastlane`](https://github.com/fastlane/fastlane) in combination with [`cert`](https://github.com/fastlane/cert).
|
150
|
+
|
151
|
+
Update your `Fastfile` to contain the following code:
|
152
|
+
|
153
|
+
```ruby
|
154
|
+
lane :beta do
|
155
|
+
cert
|
156
|
+
sigh(force: true)
|
157
|
+
end
|
158
|
+
```
|
159
|
+
|
160
|
+
`force: true` will make sure to re-generate the provisioning profile on each run.
|
161
|
+
This will result in `sigh` always using the correct signing certificate, which is installed on the local machine.
|
162
|
+
|
163
|
+
|
146
164
|
# Repair
|
147
165
|
|
148
166
|
`sigh` can automatically repair all your existing provisioning profiles which are expired or just invalid.
|
@@ -161,7 +179,7 @@ If you generated your `ipa` file but want to apply a different code signing onto
|
|
161
179
|
|
162
180
|
You can pass more information using the command line:
|
163
181
|
|
164
|
-
sigh resign ./path/app.ipa -i "iPhone Distribution: Felix Krause" -
|
182
|
+
sigh resign ./path/app.ipa -i "iPhone Distribution: Felix Krause" -n "my.mobileprovision"
|
165
183
|
|
166
184
|
# Manage
|
167
185
|
|
data/lib/sigh/options.rb
CHANGED
@@ -4,7 +4,10 @@ require 'credentials_manager'
|
|
4
4
|
module Sigh
|
5
5
|
class Options
|
6
6
|
def self.available_options
|
7
|
-
|
7
|
+
user = CredentialsManager::AppfileConfig.try_fetch_value(:apple_dev_portal_id)
|
8
|
+
user ||= CredentialsManager::AppfileConfig.try_fetch_value(:apple_id)
|
9
|
+
|
10
|
+
[
|
8
11
|
FastlaneCore::ConfigItem.new(key: :adhoc,
|
9
12
|
env_name: "SIGH_AD_HOC",
|
10
13
|
description: "Setting this flag will generate AdHoc profiles instead of App Store Profiles",
|
@@ -22,7 +25,7 @@ module Sigh
|
|
22
25
|
default_value: false),
|
23
26
|
FastlaneCore::ConfigItem.new(key: :force,
|
24
27
|
env_name: "SIGH_FORCE",
|
25
|
-
description: "Renew provisioning profiles regardless of its state",
|
28
|
+
description: "Renew provisioning profiles regardless of its state - to automatically add all devices for ad hoc profiles",
|
26
29
|
is_string: false,
|
27
30
|
default_value: false),
|
28
31
|
FastlaneCore::ConfigItem.new(key: :app_identifier,
|
@@ -34,7 +37,7 @@ module Sigh
|
|
34
37
|
short_option: "-u",
|
35
38
|
env_name: "SIGH_USERNAME",
|
36
39
|
description: "Your Apple ID Username",
|
37
|
-
default_value:
|
40
|
+
default_value: user),
|
38
41
|
FastlaneCore::ConfigItem.new(key: :team_id,
|
39
42
|
short_option: "-b",
|
40
43
|
env_name: "SIGH_TEAM_ID",
|
data/lib/sigh/runner.rb
CHANGED
@@ -35,6 +35,7 @@ module Sigh
|
|
35
35
|
end
|
36
36
|
else
|
37
37
|
Helper.log.info "No existing profiles, creating a new one for you".yellow
|
38
|
+
ensure_app_exists!
|
38
39
|
profile = create_profile!
|
39
40
|
end
|
40
41
|
|
@@ -167,5 +168,23 @@ module Sigh
|
|
167
168
|
Helper.log.info "Successfully downloaded provisioning profile...".green
|
168
169
|
return output_path
|
169
170
|
end
|
171
|
+
|
172
|
+
# Makes sure the current App ID exists. If not, it will show an appropriate error message
|
173
|
+
def ensure_app_exists!
|
174
|
+
return if Spaceship::App.find(Sigh.config[:app_identifier])
|
175
|
+
|
176
|
+
Helper.log.info ""
|
177
|
+
Helper.log.info "==========================================".yellow
|
178
|
+
Helper.log.info "Could not find App ID with bundle identifier '#{Sigh.config[:app_identifier]}'"
|
179
|
+
Helper.log.info "You can easily generate a new App ID on the Developer Portal using 'produce':"
|
180
|
+
Helper.log.info ""
|
181
|
+
Helper.log.info "produce -u #{Sigh.config[:username]} -a #{Sigh.config[:app_identifier]} --skip_itc".yellow
|
182
|
+
Helper.log.info ""
|
183
|
+
Helper.log.info "You will be asked for any missing information, like the full name of your app"
|
184
|
+
Helper.log.info "If the app should also be created on iTunes Connect, remove the " + "--skip_itc".yellow + " from the command above"
|
185
|
+
Helper.log.info "==========================================".yellow
|
186
|
+
Helper.log.info ""
|
187
|
+
raise "Could not find App with App Identifier '#{Sigh.config[:app_identifier]}}'"
|
188
|
+
end
|
170
189
|
end
|
171
190
|
end
|
data/lib/sigh/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sigh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.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: 2015-
|
11
|
+
date: 2015-12-01 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.26.4
|
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.26.4
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.0
|