nixenvironment 0.0.44 → 0.0.45

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: 3e8c92cd3b5f1cd42dacce07d1ff34e30fe2ca5f
4
- data.tar.gz: b274c4b4dfd4f771f46ee7019d200e21d0d68fb5
3
+ metadata.gz: 20dece700933567ed67b6b9d3165ac7392a00b5e
4
+ data.tar.gz: 153105891f96455a37a64decd4bd82e9ea29ddbd
5
5
  SHA512:
6
- metadata.gz: d089cb5b653f56a9e79af0eceef70d3aa8bfe3bd5a81f216021b4ff4230da8a1968eba84f842eca599907d96a6e2edce3f1b949b2782a11625c68abac31c127e
7
- data.tar.gz: 4edd318d3a60b68ce498d680b94344c567fba4a792abe7052e090cdab0f798ace644ec1b8d6105c76d9248ed55323a7f219b1a6be784bd7813d8d42461640b45
6
+ metadata.gz: e2452264da6e8e11c61983c6eac7cb72e21a85fdfb1e20b1ae6c920f7069e37c6bebc10125eacc81716a3800115cafd942548025114f5bbbc86982e8a2df2174
7
+ data.tar.gz: a134a2dfb1598083187a8779e8da7bf2f708ca4ae4738fab31707f733068a6d793d037a981ac211ee125abcbc6c4fe2c8816b6e3dd5ead17fd48ebb91b2066b2
data/README.md CHANGED
@@ -45,55 +45,47 @@ Nixenvironment installs, updates and manages inner NIX environment stuff to make
45
45
 
46
46
  # Options to override default Config
47
47
 
48
- --project_to_build VALUE
49
-
50
- --project_target_to_build VALUE
51
-
52
- --project_target_to_test VALUE
53
-
54
- --workspace_to_build VALUE
55
-
56
- --workspace_scheme_to_build VALUE
57
-
58
- --workspace_scheme_to_test VALUE
59
-
60
- --sdk VALUE
61
-
62
- --sdk_for_tests VALUE
63
-
64
- --exclude_pattern_for_code_coverage VALUE
65
-
66
- --exclude_pattern_for_code_duplication VALUE
67
-
68
- --deploy_host VALUE
69
-
70
- --deploy_path VALUE
71
-
72
- --deploy_username VALUE
73
-
74
- --deploy_password VALUE
75
-
76
- --deploy_itunesconnect_username VALUE
77
-
78
- --icons_path VALUE
79
-
80
- --xctest_destination_device VALUE
81
-
82
- --configuration_files_path VALUE
83
-
84
- --code_coverage_configuration VALUE
85
-
86
- --code_coverage_output_directory VALUE
87
-
88
- --env_var_prefix VALUE
89
-
90
- --bundle_id VALUE
91
-
92
- --resigned_bundle_id VALUE
93
-
94
- --resigned_bundle_name VALUE
95
-
96
- --resigned_entitlements_path VALUE
48
+ --project_to_build VALUE
49
+
50
+ --project_target_to_build VALUE
51
+
52
+ --project_target_to_test VALUE
53
+
54
+ --workspace_to_build VALUE
55
+
56
+ --workspace_scheme_to_build VALUE
57
+
58
+ --workspace_scheme_to_test VALUE
59
+
60
+ --sdk VALUE
61
+
62
+ --sdk_for_tests VALUE
63
+
64
+ --exclude_pattern_for_code_coverage VALUE
65
+
66
+ --exclude_pattern_for_code_duplication VALUE
67
+
68
+ --deploy_host VALUE
69
+
70
+ --deploy_path VALUE
71
+
72
+ --deploy_username VALUE
73
+
74
+ --deploy_password VALUE
75
+
76
+ --icons_path VALUE
77
+
78
+ --xctest_destination_device VALUE
79
+
80
+ --configuration_files_path VALUE
81
+
82
+ --code_coverage_configuration VALUE
83
+
84
+ --code_coverage_output_directory VALUE
85
+
86
+ --env_var_prefix VALUE
87
+
88
+ --infoplist_path VALUE
97
89
 
98
90
  EXAMPLES:
99
91
 
@@ -114,4 +106,6 @@ Nixenvironment installs, updates and manages inner NIX environment stuff to make
114
106
  ## TODO:
115
107
 
116
108
  1. Move project adjuster to this gem.
117
- 2. Rewrite README for ninbas!
109
+ 2. Implement bunch ipa making and deployment.
110
+ 3. Rewrite XcodeIconTagger/tagIcons.sh and use it in prebuild method.
111
+ 4. Rewrite README for ninbas!
@@ -82,7 +82,7 @@ command :build do |c|
82
82
  read_config_settings
83
83
  enable_ci_build(options.ci_build)
84
84
  supplement_config_settings(options.config)
85
- prebuild(options.config, options.unity_platform)
85
+ prebuild(options.config)
86
86
  build(options.config, options.ipa, options.ndsym, options.icon_tagger)
87
87
  restore_info_plist
88
88
  rescue
@@ -99,14 +99,13 @@ end
99
99
  command :deploy do |c|
100
100
  c.syntax = 'nixenvironment deploy'
101
101
  c.description = 'Deploy built artifacts to given server'
102
+ c.option '--unity_platform TARGET PLATFORM', String, 'Select target platform for unity deploy (ios or android)'
102
103
  c.option '--deliver_deploy', 'Not only verify but also submit the build on iTunes Connect. (resigned_appstore builds only)'
103
104
  c.action do |args, options|
104
105
  need_to_deploy_ios = true
105
106
 
106
- unity_platform = %x[ source _last_build_vars.sh && echo ${UNITY_PLATFORM} ].strip!
107
-
108
- if unity_platform and unity_platform.length > 0
109
- need_to_deploy_ios, root_working_dir, need_chdir_to_root_working_dir = unity_deploy(unity_platform)
107
+ if options.unity_platform and options.unity_platform.length > 0
108
+ need_to_deploy_ios, root_working_dir, need_chdir_to_root_working_dir = unity_deploy(options.unity_platform)
110
109
  end
111
110
 
112
111
  if need_to_deploy_ios
@@ -381,31 +380,30 @@ def xcode_project_contains_config?(config)
381
380
  info['Build Configurations'].include?(config)
382
381
  end
383
382
 
384
- def save_build_env_vars(unity_platform)
383
+ def save_build_env_vars
385
384
  app_product = File.join(@config_settings['BUILT_PRODUCTS_DIR'], @config_settings['EXECUTABLE_NAME']) + '.app'
386
385
 
387
386
  system("
388
387
  echo \"#!/bin/sh\
389
388
  ### AUTOGENERATED BY Nixenvironment; DO NOT EDIT ###
390
- UNITY_PLATFORM=#{unity_platform}
391
- PROJECT=#{@config_settings['PROJECT']}
392
- BUILT_PRODUCTS_DIR=#{@config_settings['BUILT_PRODUCTS_DIR']}
393
- OBJECTS_NORMAL_DIR=#{@config_settings['OBJECT_FILE_DIR_normal']}
394
- EXECUTABLE_NAME=#{@config_settings['EXECUTABLE_NAME']}
395
- APP_PRODUCT=#{app_product}
396
- APP_DSYM=#{app_product}.dSYM
397
- APP_INFOPLIST_FILE=#{@config_settings['PRODUCT_SETTINGS_PATH']}
398
- EMBEDDED_PROFILE=#{app_product}/#{@config_settings['EMBEDDED_PROFILE_NAME']}
399
- TARGET_NAME=#{@config_settings['TARGET_NAME']}
400
- CONFIGURATION=#{@config_settings['CONFIGURATION']}
401
- SDK_NAME=#{@config_settings['SDK_NAME']}
402
- RESIGNED_BUNDLE_ID=#{@config_settings['RESIGNED_BUNDLE_ID']}
403
- RESIGNED_BUNDLE_NAME=#{@config_settings['RESIGNED_BUNDLE_NAME']}
389
+ PROJECT=#{@config_settings['PROJECT']}
390
+ BUILT_PRODUCTS_DIR=#{@config_settings['BUILT_PRODUCTS_DIR']}
391
+ OBJECTS_NORMAL_DIR=#{@config_settings['OBJECT_FILE_DIR_normal']}
392
+ EXECUTABLE_NAME=#{@config_settings['EXECUTABLE_NAME']}
393
+ APP_PRODUCT=#{app_product}
394
+ APP_DSYM=#{app_product}.dSYM
395
+ APP_INFOPLIST_FILE=#{@config_settings['PRODUCT_SETTINGS_PATH']}
396
+ EMBEDDED_PROFILE=#{app_product}/#{@config_settings['EMBEDDED_PROFILE_NAME']}
397
+ TARGET_NAME=#{@config_settings['TARGET_NAME']}
398
+ CONFIGURATION=#{@config_settings['CONFIGURATION']}
399
+ SDK_NAME=#{@config_settings['SDK_NAME']}
400
+ RESIGNED_BUNDLE_ID=#{@config_settings['RESIGNED_BUNDLE_ID']}
401
+ RESIGNED_BUNDLE_NAME=#{@config_settings['RESIGNED_BUNDLE_NAME']}
404
402
  RESIGNED_ENTITLEMENTS_PATH=#{@config_settings['RESIGNED_ENTITLEMENTS_PATH']}\" > _last_build_vars.sh
405
403
  ")
406
404
  end
407
405
 
408
- def prebuild(config, unity_platform)
406
+ def prebuild(config)
409
407
  save_revision = File.join(BUILD_SCRIPTS_PATH, 'SaveRevision.sh')
410
408
 
411
409
  system("#{save_revision}")
@@ -414,7 +412,7 @@ def prebuild(config, unity_platform)
414
412
 
415
413
  backup_info_plist
416
414
 
417
- save_build_env_vars(unity_platform)
415
+ save_build_env_vars
418
416
 
419
417
  update_info_plist(config)
420
418
  end
@@ -1,3 +1,3 @@
1
1
  module Nixenvironment
2
- VERSION = '0.0.44'
2
+ VERSION = '0.0.45'
3
3
  end
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.44
4
+ version: 0.0.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen Arzumanian