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 +4 -4
- data/README.md +44 -50
- data/bin/nixenvironment +20 -22
- 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: 20dece700933567ed67b6b9d3165ac7392a00b5e
|
4
|
+
data.tar.gz: 153105891f96455a37a64decd4bd82e9ea29ddbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
--
|
77
|
-
|
78
|
-
--
|
79
|
-
|
80
|
-
--
|
81
|
-
|
82
|
-
--
|
83
|
-
|
84
|
-
--
|
85
|
-
|
86
|
-
--
|
87
|
-
|
88
|
-
--
|
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.
|
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!
|
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)
|
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
|
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
|
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
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
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
|
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
|
415
|
+
save_build_env_vars
|
418
416
|
|
419
417
|
update_info_plist(config)
|
420
418
|
end
|