nixenvironment 0.0.52 → 0.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -3
- data/bin/Config +2 -5
- data/bin/nixenvironment +11 -2
- data/lib/nixenvironment/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: 6bb695992e21e02f764d9ae7e6752a68b11ef196
|
|
4
|
+
data.tar.gz: 83ab6a795b55b590441197f28259def852ad5142
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9e0b1fcf5b94aaad93979cf6c6583394a5a0f2b9af0631b9e70046b0eea8bd201c9f0a131ea0221353e5309119012d9b7706da4555f8e34254c3aa195eebe495
|
|
7
|
+
data.tar.gz: 1d02264436d18b110eab1c4be9602b9b1cc7036be301700055412edea638de3cec12c85fa8666122c67c3fafc27ad1e386de99956f282404b5449e1618f368c5
|
data/README.md
CHANGED
|
@@ -106,6 +106,4 @@ Nixenvironment installs, updates and manages inner NIX environment stuff to make
|
|
|
106
106
|
## TODO:
|
|
107
107
|
|
|
108
108
|
1. Move project adjuster to this gem.
|
|
109
|
-
2.
|
|
110
|
-
3. Rewrite XcodeIconTagger/tagIcons.sh and use it in prebuild method.
|
|
111
|
-
4. Rewrite README for ninbas!
|
|
109
|
+
2. Rewrite README for ninbas!
|
data/bin/Config
CHANGED
|
@@ -35,8 +35,5 @@ CODE_COVERAGE_OUTPUT_DIRECTORY: ./Coverage/
|
|
|
35
35
|
|
|
36
36
|
ENV_VAR_PREFIX: NIXENV_
|
|
37
37
|
|
|
38
|
-
#
|
|
39
|
-
|
|
40
|
-
RESIGNED_BUNDLE_ID: com.nixsolutions.ApplicationResignTest
|
|
41
|
-
RESIGNED_BUNDLE_NAME: ApplicationResignTest
|
|
42
|
-
RESIGNED_ENTITLEMENTS_PATH:
|
|
38
|
+
# default resigned bundle identifier
|
|
39
|
+
RESIGNED_BUNDLE_ID: com.nixsolutions.ApplicationResignTest
|
data/bin/nixenvironment
CHANGED
|
@@ -377,6 +377,10 @@ def supplement_config_settings(config)
|
|
|
377
377
|
@config_settings['CONFIGURATION_BUILD_DIR'] = build_directory
|
|
378
378
|
@config_settings['BUILT_PRODUCTS_DIR'] = build_directory
|
|
379
379
|
@config_settings['DWARF_DSYM_FOLDER_PATH'] = build_directory
|
|
380
|
+
|
|
381
|
+
plist_path = @unescaped_product_settings_path
|
|
382
|
+
bundle_display_name = %x[ /usr/libexec/PlistBuddy -c 'Print CFBundleDisplayName' '#{plist_path}' ].strip!
|
|
383
|
+
@config_settings['RESIGNED_BUNDLE_NAME'] ||= bundle_display_name
|
|
380
384
|
end
|
|
381
385
|
|
|
382
386
|
def unescaped_product_settings_path(scheme_suffix, config)
|
|
@@ -678,9 +682,14 @@ def update_info_plist(config)
|
|
|
678
682
|
|
|
679
683
|
revision = %x[ source _last_revision.sh && echo ${REVISION} ].strip!
|
|
680
684
|
monotonic_revision = %x[ source _last_revision.sh && echo ${MONOTONIC_REVISION} ].strip!
|
|
685
|
+
bundle_id = @config_settings['BUNDLE_ID']
|
|
686
|
+
|
|
687
|
+
update_success = system("/usr/libexec/PlistBuddy -c 'Set :CFBundleVersion \"#{monotonic_revision}\"' \"#{@unescaped_product_settings_path}\"")
|
|
688
|
+
|
|
689
|
+
if bundle_id
|
|
690
|
+
update_success &&= system("/usr/libexec/PlistBuddy -c 'Set :CFBundleIdentifier \"#{bundle_id}\"' \"#{@unescaped_product_settings_path}\"")
|
|
691
|
+
end
|
|
681
692
|
|
|
682
|
-
update_success = system("/usr/libexec/PlistBuddy -c 'Set :CFBundleIdentifier \"#{@config_settings['BUNDLE_ID']}\"' \"#{@unescaped_product_settings_path}\"")
|
|
683
|
-
update_success &&= system("/usr/libexec/PlistBuddy -c 'Set :CFBundleVersion \"#{monotonic_revision}\"' \"#{@unescaped_product_settings_path}\"")
|
|
684
693
|
update_success &&= system("/usr/libexec/PlistBuddy -c 'Add :Configuration string \"#{config}\"' \"#{@unescaped_product_settings_path}\"")
|
|
685
694
|
update_success &&= system("/usr/libexec/PlistBuddy -c 'Add :RevisionNumber string \"#{revision}\"' \"#{@unescaped_product_settings_path}\"")
|
|
686
695
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nixenvironment
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.53
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Karen Arzumanian
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-08-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|