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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4ebc0d6e5080d95e6d28dd27efded6a53f80d93
4
- data.tar.gz: 520f2056e17d735ad236e852637f85a913b1b49e
3
+ metadata.gz: 6e699702c75c4f175800dac1cbb6179bf4a5b9ce
4
+ data.tar.gz: 6c6780b7b3d60eaf47aa6a83e8b8752a07fe516b
5
5
  SHA512:
6
- metadata.gz: 00063922510a372d39c283ecf522b209ef3322ffaf6bddba938ba65217777a3193f273f8f2bd665bdc072b29b2aa43f983af52b26be4485f33fbf21ce74236d6
7
- data.tar.gz: c36a964c413b30a3a3e28104e64a0917e0f8c3c83b37615f62cde13f0d205f824968cfb5409ad2a9f1597142d94b0d4731ff53d0c2b5f76f3c5b3630a2e68906
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" -p "my.mobileprovision"
182
+ sigh resign ./path/app.ipa -i "iPhone Distribution: Felix Krause" -n "my.mobileprovision"
165
183
 
166
184
  # Manage
167
185
 
@@ -4,7 +4,10 @@ require 'credentials_manager'
4
4
  module Sigh
5
5
  class Options
6
6
  def self.available_options
7
- @@options ||= [
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: CredentialsManager::AppfileConfig.try_fetch_value(:apple_id)),
40
+ default_value: user),
38
41
  FastlaneCore::ConfigItem.new(key: :team_id,
39
42
  short_option: "-b",
40
43
  env_name: "SIGH_TEAM_ID",
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Sigh
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
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.3
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-11 00:00:00.000000000 Z
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.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.19.0
29
+ version: 0.26.4
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.0.0