sigh 1.11.2 → 1.12.0

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: f3e144bec15ce2d1e0f2912f0f1b282e4eead3f0
4
- data.tar.gz: a04e7d911c822c36415525bd5991afa65a9495fe
3
+ metadata.gz: 3f9300ec7483830980a1e9c052ab303a0572b276
4
+ data.tar.gz: 5e41e10ca85aeda1e3613e963dfe8582a3c409a0
5
5
  SHA512:
6
- metadata.gz: 4aeead00109f18666109b3036660813facbbed04696e905f40aaefba5d915c3e581a07fd1ae528fae778891bf0bc678d9a9d31b501e8424996ab1a64818a65d0
7
- data.tar.gz: 06b018ad5af3710c8c9a72ca578b733013c63f24ca97d4a535ab0d9b7b2f61eb484468494e11d117873d347bbb99cef6c5fad3faceb5b146ea875d2b8aba9585
6
+ metadata.gz: 3c1b615657afb998d424a00e63a90f11ab82374acb8d94115b9c83e8c395fb7c4c1b22476497820c91f118235f0e005d687ad005722d187fe3bb337b08ba349b
7
+ data.tar.gz: d0234b5f9e0afa2b05e9aefa4988a0c604d175e34dfe2921486424a4d6aad38f51fe4b8d6b3b8745987c648de174dec4afd9f2e57c2b54d1a379a37fe9a1556f
data/README.md CHANGED
@@ -32,7 +32,6 @@ sigh
32
32
  [![Twitter: @FastlaneTools](https://img.shields.io/badge/contact-@FastlaneTools-blue.svg?style=flat)](https://twitter.com/FastlaneTools)
33
33
  [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/fastlane/fastlane/blob/master/sigh/LICENSE)
34
34
  [![Gem](https://img.shields.io/gem/v/sigh.svg?style=flat)](http://rubygems.org/gems/sigh)
35
- [![Build Status](https://img.shields.io/circleci/project/fastlane/fastlane/master.svg?style=flat)](https://circleci.com/gh/fastlane/fastlane)
36
35
 
37
36
  ###### Because you would rather spend your time building stuff than fighting provisioning
38
37
 
@@ -53,7 +52,7 @@ Get in contact with the developer on Twitter: [@FastlaneTools](https://twitter.c
53
52
 
54
53
  -------
55
54
 
56
- <h5 align="center"><code>sigh</code> is part of <a href="https://fastlane.tools">fastlane</a>: The easiest way to automate building and releasing your iOS and Android apps.</h5>
55
+ <h5 align="center"><code>sigh</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>
57
56
 
58
57
  # Features
59
58
 
@@ -217,7 +216,7 @@ If you're using [cert](https://github.com/fastlane/fastlane/tree/master/cert) in
217
216
  # Tips
218
217
  ## [`fastlane`](https://fastlane.tools) Toolchain
219
218
 
220
- - [`fastlane`](https://fastlane.tools): The easiest way to automate building and releasing your iOS and Android apps
219
+ - [`fastlane`](https://fastlane.tools): The easiest way to automate beta deployments and releases for your iOS and Android apps
221
220
  - [`deliver`](https://github.com/fastlane/fastlane/tree/master/deliver): Upload screenshots, metadata and your app to the App Store
222
221
  - [`snapshot`](https://github.com/fastlane/fastlane/tree/master/snapshot): Automate taking localized screenshots of your iOS app on every device
223
222
  - [`frameit`](https://github.com/fastlane/fastlane/tree/master/frameit): Quickly put your screenshots into the right device frames
@@ -565,7 +565,7 @@ function resign {
565
565
  # Map to the new bundle id
566
566
  NEW_REF_BUNDLE_ID=`bundle_id_for_provison "$REF_PROVISION"`
567
567
  # Change if not the same
568
- if [ "$REF_BUNDLE_ID" != "$NEW_REF_BUNDLE_ID" ];
568
+ if [ "$REF_BUNDLE_ID" != "$NEW_REF_BUNDLE_ID" && ! "$NEW_REF_BUNDLE_ID" =~ \* ];
569
569
  then
570
570
  log "Updating nested app or extension reference for ${key} key from ${REF_BUNDLE_ID} to ${NEW_REF_BUNDLE_ID}"
571
571
  `PlistBuddy -c "Set ${key} $NEW_REF_BUNDLE_ID" "$APP_PATH/Info.plist"`
@@ -15,7 +15,8 @@ module Sigh
15
15
  def self.install_profile(profile)
16
16
  UI.message "Installing provisioning profile..."
17
17
  profile_path = File.expand_path("~") + "/Library/MobileDevice/Provisioning Profiles/"
18
- profile_filename = ENV["SIGH_UDID"] + ".mobileprovision"
18
+ uuid = ENV["SIGH_UUID"] || ENV["SIGH_UDID"]
19
+ profile_filename = uuid + ".mobileprovision"
19
20
  destination = profile_path + profile_filename
20
21
 
21
22
  # If the directory doesn't exist, make it first
@@ -35,8 +35,8 @@ module Sigh
35
35
  end
36
36
 
37
37
  def self.install_profile(profile)
38
- udid = FastlaneCore::ProvisioningProfile.uuid(profile)
39
- ENV["SIGH_UDID"] = udid if udid
38
+ uuid = FastlaneCore::ProvisioningProfile.uuid(profile)
39
+ ENV["SIGH_UDID"] = ENV["SIGH_UUID"] = uuid if uuid
40
40
 
41
41
  FastlaneCore::ProvisioningProfile.install(profile)
42
42
  end
@@ -35,6 +35,7 @@ module Sigh
35
35
  env_name: "SIGH_FORCE",
36
36
  description: "Renew provisioning profiles regardless of its state - to automatically add all devices for ad hoc profiles",
37
37
  is_string: false,
38
+ short_option: "-f",
38
39
  default_value: false),
39
40
  FastlaneCore::ConfigItem.new(key: :app_identifier,
40
41
  short_option: "-a",
@@ -49,20 +50,20 @@ module Sigh
49
50
  FastlaneCore::ConfigItem.new(key: :team_id,
50
51
  short_option: "-b",
51
52
  env_name: "SIGH_TEAM_ID",
52
- description: "The ID of your team if you're in multiple teams",
53
+ description: "The ID of your Developer Portal team if you're in multiple teams",
53
54
  optional: true,
54
55
  default_value: CredentialsManager::AppfileConfig.try_fetch_value(:team_id),
55
56
  verify_block: proc do |value|
56
- ENV["FASTLANE_TEAM_ID"] = value
57
+ ENV["FASTLANE_TEAM_ID"] = value.to_s
57
58
  end),
58
59
  FastlaneCore::ConfigItem.new(key: :team_name,
59
60
  short_option: "-l",
60
61
  env_name: "SIGH_TEAM_NAME",
61
- description: "The name of your team if you're in multiple teams",
62
+ description: "The name of your Developer Portal team if you're in multiple teams",
62
63
  optional: true,
63
64
  default_value: CredentialsManager::AppfileConfig.try_fetch_value(:team_name),
64
65
  verify_block: proc do |value|
65
- ENV["FASTLANE_TEAM_NAME"] = value
66
+ ENV["FASTLANE_TEAM_NAME"] = value.to_s
66
67
  end),
67
68
  FastlaneCore::ConfigItem.new(key: :provisioning_name,
68
69
  short_option: "-n",
@@ -27,7 +27,8 @@ module Sigh
27
27
  # validate that we have valid values for all these params, we don't need to check signing_identity because `find_signing_identity` will only ever return a valid value
28
28
  validate_params(resign_path, ipa, provisioning_profiles)
29
29
  entitlements = "-e #{entitlements.shellescape}" if entitlements
30
- provisioning_options = provisioning_profiles.map { |fst, snd| "-p #{[fst, snd].compact.map(&:shellescape).join('=')}" }.join(' ')
30
+
31
+ provisioning_options = create_provisioning_options(provisioning_profiles)
31
32
  version = "-n #{version}" if version
32
33
  display_name = "-d #{display_name.shellescape}" if display_name
33
34
  short_version = "--short-version #{short_version}" if short_version
@@ -113,6 +114,28 @@ module Sigh
113
114
  identities.key(signing_identity)
114
115
  end
115
116
 
117
+ def create_provisioning_options(provisioning_profiles)
118
+ # provisioning_profiles is passed either a hash (to be able to resign extensions/nested apps):
119
+ # (in that case the underlying resign.sh expects values given as "-p at.fastlane=/folder/mobile.mobileprovision -p at.fastlane.today=/folder/mobile.mobileprovision")
120
+ # {
121
+ # "at.fastlane" => "/folder/mobile.mobileprovision",
122
+ # "at.fastlane.today" => "/folder/mobile.mobileprovision"
123
+ # }
124
+ # or an array
125
+ # (resign.sh also takes "-p /folder/mobile.mobileprovision" as a param)
126
+ # [
127
+ # "/folder/mobile.mobileprovision"
128
+ # ]
129
+ provisioning_profiles.map do |app_id, app_id_prov|
130
+ if app_id_prov
131
+ app_id_prov = File.expand_path(app_id_prov)
132
+ else
133
+ app_id = File.expand_path(app_id)
134
+ end
135
+ "-p #{[app_id, app_id_prov].compact.map(&:shellescape).join('=')}"
136
+ end.join(' ')
137
+ end
138
+
116
139
  def validate_params(resign_path, ipa, provisioning_profiles)
117
140
  validate_resign_path(resign_path)
118
141
  validate_ipa_file(ipa)
@@ -1,3 +1,3 @@
1
1
  module Sigh
2
- VERSION = "1.11.2"
2
+ VERSION = "1.12.0"
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.11.2
4
+ version: 1.12.0
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-05 00:00:00.000000000 Z
11
+ date: 2016-11-28 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.52.1
19
+ version: 0.57.1
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.52.1
29
+ version: 0.57.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.0.0
@@ -34,23 +34,29 @@ dependencies:
34
34
  name: plist
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: 3.1.0
40
+ - - "<"
38
41
  - !ruby/object:Gem::Version
39
- version: '3.1'
42
+ version: 4.0.0
40
43
  type: :runtime
41
44
  prerelease: false
42
45
  version_requirements: !ruby/object:Gem::Requirement
43
46
  requirements:
44
- - - "~>"
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 3.1.0
50
+ - - "<"
45
51
  - !ruby/object:Gem::Version
46
- version: '3.1'
52
+ version: 4.0.0
47
53
  - !ruby/object:Gem::Dependency
48
54
  name: spaceship
49
55
  requirement: !ruby/object:Gem::Requirement
50
56
  requirements:
51
57
  - - ">="
52
58
  - !ruby/object:Gem::Version
53
- version: 0.34.2
59
+ version: 0.38.1
54
60
  - - "<"
55
61
  - !ruby/object:Gem::Version
56
62
  version: 1.0.0
@@ -60,7 +66,7 @@ dependencies:
60
66
  requirements:
61
67
  - - ">="
62
68
  - !ruby/object:Gem::Version
63
- version: 0.34.2
69
+ version: 0.38.1
64
70
  - - "<"
65
71
  - !ruby/object:Gem::Version
66
72
  version: 1.0.0
@@ -196,14 +202,14 @@ dependencies:
196
202
  requirements:
197
203
  - - "~>"
198
204
  - !ruby/object:Gem::Version
199
- version: 0.38.0
205
+ version: 0.44.0
200
206
  type: :development
201
207
  prerelease: false
202
208
  version_requirements: !ruby/object:Gem::Requirement
203
209
  requirements:
204
210
  - - "~>"
205
211
  - !ruby/object:Gem::Version
206
- version: 0.38.0
212
+ version: 0.44.0
207
213
  description: Because you would rather spend your time building stuff than fighting
208
214
  provisioning
209
215
  email:
@@ -247,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
247
253
  version: '0'
248
254
  requirements: []
249
255
  rubyforge_project:
250
- rubygems_version: 2.4.5.1
256
+ rubygems_version: 2.2.2
251
257
  signing_key:
252
258
  specification_version: 4
253
259
  summary: Because you would rather spend your time building stuff than fighting provisioning