nixenvironment 0.0.55 → 0.0.56
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/bin/nixenvironment +23 -4
- 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: c5d6477119296f4eeb76dfa17fb19214e31ea195
|
|
4
|
+
data.tar.gz: c20eb76092cfaf993e719e2af3a88a028ece9e4d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f568115facf5126ff4f524112067bf74855687dea805560767cd300c9073da89554deaa2d864c581e1f853c0bf2b9cd87c34960f0dda8003584ab86ce91208b4
|
|
7
|
+
data.tar.gz: 07713cf74f1adc6ed1e624c1752ade9d5ff8cda5672bf88eb42c0da909d57a62fab6d8620aa966f16e89af79c12a3d84b93f5ccdb2e8270c43cb510cc78523b5
|
data/bin/nixenvironment
CHANGED
|
@@ -45,9 +45,12 @@ global_option ('--code_coverage_output_directory VALUE') { |value| $code_coverag
|
|
|
45
45
|
global_option ('--env_var_prefix VALUE') { |value| $env_var_prefix = value }
|
|
46
46
|
|
|
47
47
|
global_option ('--bundle_id VALUE') { |value| $bundle_id = value }
|
|
48
|
-
global_option ('--resigned_bundle_id VALUE') { |value| $resigned_bundle_id= value }
|
|
48
|
+
global_option ('--resigned_bundle_id VALUE') { |value| $resigned_bundle_id = value }
|
|
49
|
+
global_option ('--resigned_watchkit_app_bundle_id VALUE') { |value| $resigned_watchkit_app_bundle_id = value }
|
|
50
|
+
global_option ('--resigned_watchkit_extension_bundle_id VALUE') { |value| $resigned_watchkit_extension_bundle_id = value }
|
|
49
51
|
global_option ('--resigned_bundle_name VALUE') { |value| $resigned_bundle_name = value }
|
|
50
52
|
global_option ('--resigned_entitlements_path VALUE') { |value| $resigned_entitlements_path = value }
|
|
53
|
+
global_option ('--resigned_watchkit_extension_entitlements_path VALUE') { |value| $resigned_watchkit_extension_entitlements_path = value }
|
|
51
54
|
|
|
52
55
|
command :update do |c|
|
|
53
56
|
c.syntax = 'nixenvironment update'
|
|
@@ -276,8 +279,11 @@ def read_config_settings
|
|
|
276
279
|
update_config_settings('ENV_VAR_PREFIX', $env_var_prefix)
|
|
277
280
|
update_config_settings('BUNDLE_ID', $bundle_id)
|
|
278
281
|
update_config_settings('RESIGNED_BUNDLE_ID', $resigned_bundle_id)
|
|
282
|
+
update_config_settings('RESIGNED_WATCHKIT_APP_BUNDLE_ID', $resigned_watchkit_app_bundle_id)
|
|
283
|
+
update_config_settings('RESIGNED_WATCHKIT_EXTENSION_BUNDLE_ID', $resigned_watchkit_extension_bundle_id)
|
|
279
284
|
update_config_settings('RESIGNED_BUNDLE_NAME', $resigned_bundle_name)
|
|
280
285
|
update_config_settings('RESIGNED_ENTITLEMENTS_PATH', $resigned_entitlements_path)
|
|
286
|
+
update_config_settings('RESIGNED_WATCHKIT_EXTENSION_ENTITLEMENTS_PATH', $resigned_watchkit_extension_entitlements_path)
|
|
281
287
|
end
|
|
282
288
|
|
|
283
289
|
def update_config_settings(key, value)
|
|
@@ -449,9 +455,17 @@ def xcode_project_info
|
|
|
449
455
|
end
|
|
450
456
|
|
|
451
457
|
def save_build_env_vars
|
|
452
|
-
|
|
458
|
+
executable_name = @config_settings['EXECUTABLE_NAME']
|
|
459
|
+
watchkit_app_executable = executable_name + ' WatchKit App.app'
|
|
460
|
+
watchkit_extension_executable = executable_name + ' WatchKit Extension.appex'
|
|
453
461
|
|
|
454
|
-
|
|
462
|
+
app_product = File.join(@config_settings['BUILT_PRODUCTS_DIR'], executable_name) + '.app'
|
|
463
|
+
watchkit_extension_relative_product = @config_settings['RESIGNED_WATCHKIT_EXTENSION_BUNDLE_ID'].nil? ? nil : File.join('PlugIns', watchkit_extension_executable).shellescape
|
|
464
|
+
watchkit_app_relative_product = @config_settings['RESIGNED_WATCHKIT_APP_BUNDLE_ID'].nil? ? nil : File.join(watchkit_extension_relative_product, watchkit_app_executable).shellescape
|
|
465
|
+
|
|
466
|
+
resigned_watchkit_extension_entitlements_path = @config_settings['RESIGNED_WATCHKIT_EXTENSION_ENTITLEMENTS_PATH'].nil? ? nil : @config_settings['RESIGNED_WATCHKIT_EXTENSION_ENTITLEMENTS_PATH'].shellescape
|
|
467
|
+
|
|
468
|
+
system("
|
|
455
469
|
echo \"#!/bin/sh\
|
|
456
470
|
### AUTOGENERATED BY Nixenvironment; DO NOT EDIT ###
|
|
457
471
|
PROJECT=#{@config_settings['PROJECT']}
|
|
@@ -459,6 +473,8 @@ BUILT_PRODUCTS_DIR=#{@config_settings['BUILT_PRODUCTS_DIR']}
|
|
|
459
473
|
OBJECTS_NORMAL_DIR=#{@config_settings['OBJECT_FILE_DIR_normal']}
|
|
460
474
|
EXECUTABLE_NAME=#{@config_settings['EXECUTABLE_NAME']}
|
|
461
475
|
APP_PRODUCT=#{app_product}
|
|
476
|
+
WATCHKIT_APP_RELATIVE_PRODUCT=#{watchkit_app_relative_product}
|
|
477
|
+
WATCHKIT_EXTENSION_RELATIVE_PRODUCT=#{watchkit_extension_relative_product}
|
|
462
478
|
APP_DSYM=#{app_product}.dSYM
|
|
463
479
|
APP_INFOPLIST_FILE=#{@config_settings['PRODUCT_SETTINGS_PATH']}
|
|
464
480
|
EMBEDDED_PROFILE=#{app_product}/#{@config_settings['EMBEDDED_PROFILE_NAME']}
|
|
@@ -466,8 +482,11 @@ APP_INFOPLIST_FILE=#{@config_settings['PRODUCT_SETTINGS_PATH']}
|
|
|
466
482
|
CONFIGURATION=#{@config_settings['CONFIGURATION']}
|
|
467
483
|
SDK_NAME=#{@config_settings['SDK_NAME']}
|
|
468
484
|
RESIGNED_BUNDLE_ID=#{@config_settings['RESIGNED_BUNDLE_ID']}
|
|
485
|
+
RESIGNED_WATCHKIT_APP_BUNDLE_ID=#{@config_settings['RESIGNED_WATCHKIT_APP_BUNDLE_ID']}
|
|
486
|
+
RESIGNED_WATCHKIT_EXTENSION_BUNDLE_ID=#{@config_settings['RESIGNED_WATCHKIT_EXTENSION_BUNDLE_ID']}
|
|
469
487
|
RESIGNED_BUNDLE_NAME=#{@config_settings['RESIGNED_BUNDLE_NAME']}
|
|
470
|
-
RESIGNED_ENTITLEMENTS_PATH=#{@config_settings['RESIGNED_ENTITLEMENTS_PATH']}
|
|
488
|
+
RESIGNED_ENTITLEMENTS_PATH=#{@config_settings['RESIGNED_ENTITLEMENTS_PATH']}
|
|
489
|
+
RESIGNED_WATCHKIT_EXTENSION_ENTITLEMENTS_PATH=#{resigned_watchkit_extension_entitlements_path}\" > _last_build_vars.sh
|
|
471
490
|
")
|
|
472
491
|
end
|
|
473
492
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.56
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Karen
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-08-
|
|
12
|
+
date: 2015-08-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: cocoapods
|