nixenvironment 0.0.28 → 0.0.29
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/Config +0 -2
- data/bin/nixenvironment +10 -14
- data/lib/nixenvironment/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 092e4ce61b47a6f9bd5e8a4c684fd1180dce53a2
|
4
|
+
data.tar.gz: e8d6c13c96985e7092e8834299d3dbc183a15ab5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8dbc35d21457c6761461b399ac3282e090f8db7aa67410bebeff982076ab33d6c101119d94928bec48905b99792b26a4c9f92531db150806daff4ca6c21fc47
|
7
|
+
data.tar.gz: a51ca595561b76fe72d8c670695725b1d547725bb03c27ed582662872be15fb4854fa28165974cf84015ed4eadd839892b95e509405a0a1cc0c6320d4892f61d
|
data/bin/Config
CHANGED
@@ -35,8 +35,6 @@ CODE_COVERAGE_OUTPUT_DIRECTORY: ./Coverage/
|
|
35
35
|
|
36
36
|
ENV_VAR_PREFIX: NIXENV_
|
37
37
|
|
38
|
-
INFOPLIST_PATH: Resources/Plists/Info.plist
|
39
|
-
|
40
38
|
# bundle identifiers and entitlements
|
41
39
|
BUNDLE_ID: com.nixsolutions.${PRODUCT_NAME:rfc1034identifier}
|
42
40
|
RESIGNED_BUNDLE_ID: com.nixsolutions.ApplicationResignTest
|
data/bin/nixenvironment
CHANGED
@@ -43,8 +43,6 @@ global_option ('--code_coverage_output_directory VALUE') { |value| $code_coverag
|
|
43
43
|
|
44
44
|
global_option ('--env_var_prefix VALUE') { |value| $env_var_prefix = value }
|
45
45
|
|
46
|
-
global_option ('--infoplist_path VALUE') { |value| $infoplist_path = value }
|
47
|
-
|
48
46
|
global_option ('--bundle_id VALUE') { |value| $bundle_id = value }
|
49
47
|
global_option ('--resigned_bundle_id VALUE') { |value| $resigned_bundle_id= value }
|
50
48
|
global_option ('--resigned_bundle_name VALUE') { |value| $resigned_bundle_name = value }
|
@@ -251,7 +249,6 @@ def read_config_settings
|
|
251
249
|
update_config_settings('CODE_COVERAGE_CONFIGURATION', $code_coverage_configuration)
|
252
250
|
update_config_settings('CODE_COVERAGE_OUTPUT_DIRECTORY', $code_coverage_output_directory)
|
253
251
|
update_config_settings('ENV_VAR_PREFIX', $env_var_prefix)
|
254
|
-
update_config_settings('INFOPLIST_PATH', $infoplist_path)
|
255
252
|
update_config_settings('BUNDLE_ID', $bundle_id)
|
256
253
|
update_config_settings('RESIGNED_BUNDLE_ID', $resigned_bundle_id)
|
257
254
|
update_config_settings('RESIGNED_BUNDLE_NAME', $resigned_bundle_name)
|
@@ -372,7 +369,7 @@ OBJECTS_NORMAL_DIR=#{@config_settings['OBJECT_FILE_DIR_normal']}
|
|
372
369
|
EXECUTABLE_NAME=#{@config_settings['EXECUTABLE_NAME']}
|
373
370
|
APP_PRODUCT=#{app_product}
|
374
371
|
APP_DSYM=#{app_product}.dSYM
|
375
|
-
APP_INFOPLIST_FILE=#{@config_settings['
|
372
|
+
APP_INFOPLIST_FILE=#{@config_settings['PRODUCT_SETTINGS_PATH']}
|
376
373
|
EMBEDDED_PROFILE=#{app_product}/#{@config_settings['EMBEDDED_PROFILE_NAME']}
|
377
374
|
TARGET_NAME=#{@config_settings['TARGET_NAME']}
|
378
375
|
CONFIGURATION=#{@config_settings['CONFIGURATION']}
|
@@ -398,7 +395,7 @@ def prebuild(config)
|
|
398
395
|
update_info_plist(config)
|
399
396
|
|
400
397
|
# TODO: rewrite tagIcons.sh
|
401
|
-
# system("#{tag_icons}
|
398
|
+
# system("#{tag_icons} #{@config_settings['ICONS_PATH']}")
|
402
399
|
end
|
403
400
|
|
404
401
|
def build(config, ipa)
|
@@ -512,7 +509,6 @@ def unity_build(unity)
|
|
512
509
|
|
513
510
|
$project_to_build = 'Unity-iPhone.xcodeproj'
|
514
511
|
$project_target_to_build = 'Unity-iPhone'
|
515
|
-
$infoplist_path = 'Info.plist'
|
516
512
|
when 'android'
|
517
513
|
#TODO: implement me!
|
518
514
|
else
|
@@ -525,8 +521,8 @@ end
|
|
525
521
|
def backup_info_plist
|
526
522
|
p('Backuping Info.plist ...')
|
527
523
|
|
528
|
-
@info_plist_backup_name = @config_settings['
|
529
|
-
FileUtils.cp(@config_settings['
|
524
|
+
@info_plist_backup_name = @config_settings['PRODUCT_SETTINGS_PATH'] + '.backup'
|
525
|
+
FileUtils.cp(@config_settings['PRODUCT_SETTINGS_PATH'], @info_plist_backup_name)
|
530
526
|
|
531
527
|
p('Info.plist was backuped.')
|
532
528
|
end
|
@@ -537,10 +533,10 @@ def update_info_plist(config)
|
|
537
533
|
revision = %x[ source _last_revision.sh && echo ${REVISION} ].strip!
|
538
534
|
monotonic_revision = %x[ source _last_revision.sh && echo ${MONOTONIC_REVISION} ].strip!
|
539
535
|
|
540
|
-
update_success = system("/usr/libexec/PlistBuddy -c 'Set :CFBundleIdentifier \"#{@config_settings['BUNDLE_ID']}\"' \"#{@config_settings['
|
541
|
-
update_success &&= system("/usr/libexec/PlistBuddy -c 'Set :CFBundleVersion \"#{monotonic_revision}\"' \"#{@config_settings['
|
542
|
-
update_success &&= system("/usr/libexec/PlistBuddy -c 'Add :Configuration string \"#{config}\"' \"#{@config_settings['
|
543
|
-
update_success &&= system("/usr/libexec/PlistBuddy -c 'Add :RevisionNumber string \"#{revision}\"' \"#{@config_settings['
|
536
|
+
update_success = system("/usr/libexec/PlistBuddy -c 'Set :CFBundleIdentifier \"#{@config_settings['BUNDLE_ID']}\"' \"#{@config_settings['PRODUCT_SETTINGS_PATH']}\"")
|
537
|
+
update_success &&= system("/usr/libexec/PlistBuddy -c 'Set :CFBundleVersion \"#{monotonic_revision}\"' \"#{@config_settings['PRODUCT_SETTINGS_PATH']}\"")
|
538
|
+
update_success &&= system("/usr/libexec/PlistBuddy -c 'Add :Configuration string \"#{config}\"' \"#{@config_settings['PRODUCT_SETTINGS_PATH']}\"")
|
539
|
+
update_success &&= system("/usr/libexec/PlistBuddy -c 'Add :RevisionNumber string \"#{revision}\"' \"#{@config_settings['PRODUCT_SETTINGS_PATH']}\"")
|
544
540
|
|
545
541
|
unless update_success
|
546
542
|
restore_info_plist
|
@@ -553,8 +549,8 @@ end
|
|
553
549
|
def restore_info_plist
|
554
550
|
p('Restoring Info.plist ...')
|
555
551
|
|
556
|
-
File.delete(@config_settings['
|
557
|
-
File.rename(@info_plist_backup_name, @config_settings['
|
552
|
+
File.delete(@config_settings['PRODUCT_SETTINGS_PATH'])
|
553
|
+
File.rename(@info_plist_backup_name, @config_settings['PRODUCT_SETTINGS_PATH'])
|
558
554
|
|
559
555
|
p('Info.plist was restored.')
|
560
556
|
end
|