sigh 0.5.1 → 0.5.2

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: ccacb946a94730c3487633a1b35299a6d847fbb8
4
- data.tar.gz: 93db5aa256825f54add232ca31c80512787359e7
3
+ metadata.gz: 8b585780730eaef47020d53ae0478b5991f289dd
4
+ data.tar.gz: ea30fb8b855256d7f4161902678d4154c5c5d5a3
5
5
  SHA512:
6
- metadata.gz: c7aea7428c92c4b2c073c5acd53f3c45ee209eaee0b6abee6c7f5fefa68d14685869f5b8a13d9ec7f3ee62cc9cfaed8ebcc58254ec4d28d59379a798f1d125d3
7
- data.tar.gz: 58a509bb5792880d5cdc3d6d9d0c4503236016f00f00f5562b2c63471e5473af7e1c1930ad1889c4a2958f3e92e4dd22c5697335fb706e44d695006d05f72b37
6
+ metadata.gz: 48e286ab52ba07fcc9aceadd6c889973c7ddedd82376d23ea4ebb1f46e279c46f9a9237745203694f528bdd3eddd031e38a6eac79a4ca01566f38d81f74c50b6
7
+ data.tar.gz: 2c323e4f2ae7f1055cec978229fbea421b07c806f0cbf7b3e42c143cf7c4eaaeeba9daf14c1d8502d80e48df4043fcc39a58af5c0691941fe18c12e4d8441dbc
data/README.md CHANGED
@@ -165,7 +165,7 @@ Or delete all `iOS Team Provisioning Profile` by using a regular expression
165
165
  In case you prefer environment variables:
166
166
 
167
167
  - `SIGH_USERNAME`
168
- - `SIGH_APP_IDENTIFIER`
168
+ - `SIGH_APP_IDENTIFIER` (The App's Bundle ID , e.g. `com.yourteam.awesomeapp`)
169
169
  - `SIGH_TEAM_ID` (The Team ID, e.g. `Q2CBPK58CA`)
170
170
  - `SIGH_PROVISIONING_PROFILE_NAME` (set a custom name for the name of the generated file)
171
171
 
data/bin/sigh CHANGED
@@ -21,7 +21,7 @@ class SighApplication
21
21
  program :help, 'Author', 'Felix Krause <sigh@krausefx.com>'
22
22
  program :help, 'Website', 'https://fastlane.tools'
23
23
  program :help, 'GitHub', 'https://github.com/krausefx/sigh'
24
- # program :help_formatter, :compact # https://github.com/commander-rb/commander/issues/12
24
+ program :help_formatter, :compact
25
25
 
26
26
  always_trace!
27
27
 
@@ -361,15 +361,23 @@ else
361
361
  PlistBuddy -c "Set :keychain-access-groups:0 ${APP_IDENTIFER_PREFIX}.${BUNDLE_IDENTIFIER}" "$TEMP_DIR/newEntitlements"
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
+ IS_ENTERPRISE_PROFILE=`PlistBuddy -c "Print :ProvisionsAllDevices" "$TEMP_DIR/profile.plist" | tr -d '\n'`
365
+
364
366
  echo "Assuming Distribution Identity"
365
367
  if [ "$ADJUST_BETA_REPORTS_ACTIVE_FLAG" == "1" ]; then
366
- echo "Ensuring beta-reports-active is present and enabled"
367
- # new beta key is only used for Distribution; might not exist yet, if we were building Development
368
- PlistBuddy -c "Add :beta-reports-active bool true" "$TEMP_DIR/newEntitlements"
369
- if [ $? -ne 0 ]; then
370
- PlistBuddy -c "Set :beta-reports-active YES" "$TEMP_DIR/newEntitlements"
368
+ if [ "$IS_ENTERPRISE_PROFILE" == "true" ]; then
369
+ echo "Ensuring beta-reports-active is not included for Enterprise environment"
370
+ PlistBuddy -c "Delete :beta-reports-active" "$TEMP_DIR/newEntitlements"
371
+ checkStatus
372
+ else
373
+ echo "Ensuring beta-reports-active is present and enabled"
374
+ # new beta key is only used for Distribution; might not exist yet, if we were building Development
375
+ PlistBuddy -c "Add :beta-reports-active bool true" "$TEMP_DIR/newEntitlements"
376
+ if [ $? -ne 0 ]; then
377
+ PlistBuddy -c "Set :beta-reports-active YES" "$TEMP_DIR/newEntitlements"
378
+ fi
379
+ checkStatus
371
380
  fi
372
- checkStatus
373
381
  fi
374
382
  echo "Setting get-task-allow entitlement to NO"
375
383
  PlistBuddy -c "Set :get-task-allow NO" "$TEMP_DIR/newEntitlements"
@@ -28,7 +28,9 @@ module Sigh
28
28
  cert_name += '.mobileprovision' unless cert_name.include?'mobileprovision'
29
29
 
30
30
  output_path = File.join(TMP_FOLDER, cert_name)
31
- File.write(output_path, cert)
31
+ dataWritten = File.open(output_path, "wb") do |f|
32
+ f.write(cert)
33
+ end
32
34
 
33
35
  store_provisioning_id_in_environment(output_path)
34
36
 
@@ -158,7 +160,7 @@ module Sigh
158
160
  all(:xpath, "//option").each do |current|
159
161
  puts "\t- #{current.text}".yellow
160
162
  end
161
- raise "Could not find Apple ID '#{app_identifier}'.".red
163
+ raise "Could not find App ID '#{app_identifier}'.".red
162
164
  else
163
165
  identifiers.first.select_option
164
166
  end
@@ -1,3 +1,3 @@
1
1
  module Sigh
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
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: 0.5.1
4
+ version: 0.5.2
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-05-05 00:00:00.000000000 Z
11
+ date: 2015-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core