nixenvironment 0.0.43 → 0.0.44
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +50 -44
- data/bin/nixenvironment +22 -20
- data/lib/nixenvironment/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e8c92cd3b5f1cd42dacce07d1ff34e30fe2ca5f
|
4
|
+
data.tar.gz: b274c4b4dfd4f771f46ee7019d200e21d0d68fb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d089cb5b653f56a9e79af0eceef70d3aa8bfe3bd5a81f216021b4ff4230da8a1968eba84f842eca599907d96a6e2edce3f1b949b2782a11625c68abac31c127e
|
7
|
+
data.tar.gz: 4edd318d3a60b68ce498d680b94344c567fba4a792abe7052e090cdab0f798ace644ec1b8d6105c76d9248ed55323a7f219b1a6be784bd7813d8d42461640b45
|
data/README.md
CHANGED
@@ -45,47 +45,55 @@ 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
|
-
--
|
77
|
-
|
78
|
-
--
|
79
|
-
|
80
|
-
--
|
81
|
-
|
82
|
-
--
|
83
|
-
|
84
|
-
--
|
85
|
-
|
86
|
-
--
|
87
|
-
|
88
|
-
--
|
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
|
89
97
|
|
90
98
|
EXAMPLES:
|
91
99
|
|
@@ -106,6 +114,4 @@ Nixenvironment installs, updates and manages inner NIX environment stuff to make
|
|
106
114
|
## TODO:
|
107
115
|
|
108
116
|
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!
|
117
|
+
2. Rewrite README for ninbas!
|
data/bin/nixenvironment
CHANGED
@@ -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)
|
85
|
+
prebuild(options.config, options.unity_platform)
|
86
86
|
build(options.config, options.ipa, options.ndsym, options.icon_tagger)
|
87
87
|
restore_info_plist
|
88
88
|
rescue
|
@@ -99,13 +99,14 @@ 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)'
|
103
102
|
c.option '--deliver_deploy', 'Not only verify but also submit the build on iTunes Connect. (resigned_appstore builds only)'
|
104
103
|
c.action do |args, options|
|
105
104
|
need_to_deploy_ios = true
|
106
105
|
|
107
|
-
|
108
|
-
|
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)
|
109
110
|
end
|
110
111
|
|
111
112
|
if need_to_deploy_ios
|
@@ -380,30 +381,31 @@ def xcode_project_contains_config?(config)
|
|
380
381
|
info['Build Configurations'].include?(config)
|
381
382
|
end
|
382
383
|
|
383
|
-
def save_build_env_vars
|
384
|
+
def save_build_env_vars(unity_platform)
|
384
385
|
app_product = File.join(@config_settings['BUILT_PRODUCTS_DIR'], @config_settings['EXECUTABLE_NAME']) + '.app'
|
385
386
|
|
386
387
|
system("
|
387
388
|
echo \"#!/bin/sh\
|
388
389
|
### AUTOGENERATED BY Nixenvironment; DO NOT EDIT ###
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
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']}
|
402
404
|
RESIGNED_ENTITLEMENTS_PATH=#{@config_settings['RESIGNED_ENTITLEMENTS_PATH']}\" > _last_build_vars.sh
|
403
405
|
")
|
404
406
|
end
|
405
407
|
|
406
|
-
def prebuild(config)
|
408
|
+
def prebuild(config, unity_platform)
|
407
409
|
save_revision = File.join(BUILD_SCRIPTS_PATH, 'SaveRevision.sh')
|
408
410
|
|
409
411
|
system("#{save_revision}")
|
@@ -412,7 +414,7 @@ def prebuild(config)
|
|
412
414
|
|
413
415
|
backup_info_plist
|
414
416
|
|
415
|
-
save_build_env_vars
|
417
|
+
save_build_env_vars(unity_platform)
|
416
418
|
|
417
419
|
update_info_plist(config)
|
418
420
|
end
|
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.44
|
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-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
124
|
rubyforge_project:
|
125
|
-
rubygems_version: 2.4.
|
125
|
+
rubygems_version: 2.4.8
|
126
126
|
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: NIX projects build and deploy utility
|