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 +4 -4
- data/README.md +1 -1
- data/bin/sigh +1 -1
- data/lib/assets/resign.sh +14 -6
- data/lib/sigh/developer_center.rb +4 -2
- data/lib/sigh/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b585780730eaef47020d53ae0478b5991f289dd
|
4
|
+
data.tar.gz: ea30fb8b855256d7f4161902678d4154c5c5d5a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
24
|
+
program :help_formatter, :compact
|
25
25
|
|
26
26
|
always_trace!
|
27
27
|
|
data/lib/assets/resign.sh
CHANGED
@@ -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
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
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.
|
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
|
163
|
+
raise "Could not find App ID '#{app_identifier}'.".red
|
162
164
|
else
|
163
165
|
identifiers.first.select_option
|
164
166
|
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: 0.5.
|
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-
|
11
|
+
date: 2015-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane_core
|