nixenvironment 0.0.47 → 0.0.48
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 +17 -6
- 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: edbc4d306fecf00ee668fb5b45665f26ac490a5d
|
4
|
+
data.tar.gz: 89180dffb904b2b00566bc3a2ecfe52c8bb25294
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4afd316bab824de4f46f6a71c4df23836c9f16f8bd4bf5c4f93e7dce7e563b3037d76b315d100d4a1f72a0b5f50495cb6ac579a3b6501f113dc04c87059b9c65
|
7
|
+
data.tar.gz: a27d7f62457cee80bb89f82a5f0de1608e98bee5dc5df3a0afc2df566aa5e4f6f4c20c7809062faf571e5c48d341192e4ca21b0aff5e2d511905913e8e9f72f1
|
data/bin/nixenvironment
CHANGED
@@ -65,6 +65,11 @@ command :build do |c|
|
|
65
65
|
c.option '--ipa TYPES', String, 'Select sign (device, resigned_device, resigned_adhoc, resigned_appstore)'
|
66
66
|
c.option '--ci_build', 'Define NIXENV_CI_BUILD environment variable'
|
67
67
|
c.option '--unity_path PATH', String, 'Select unity executable path (UNITY, UNITY_4 or custom path)'
|
68
|
+
c.option '--development-build', 'Enable Developmen flag in Unity project'
|
69
|
+
c.option '--keystore-path PATH', String, 'Specify the path to .keystore file'
|
70
|
+
c.option '--keystore-password PASSWORD', String, 'Specify the password for accessing a .keystore file'
|
71
|
+
c.option '--key-alias-name NAME', String, 'Specify the alias name which should be used from .keystore file to sign a release version of an APK'
|
72
|
+
c.option '--key-alias-password PASSWORD', String, 'Specify the password for accessing an alias name'
|
68
73
|
c.option '--unity_platform TARGET PLATFORM', String, 'Select target platform for unity build (ios or android)'
|
69
74
|
c.option '--ndsym', 'Disable .dsym generation for ios project'
|
70
75
|
c.option '--icon_tagger MODE', String, 'Set XcodeIconTagger mode (full, short, off)'
|
@@ -74,7 +79,8 @@ command :build do |c|
|
|
74
79
|
need_to_build_ios = true
|
75
80
|
|
76
81
|
if options.unity_platform and options.unity_platform.length > 0
|
77
|
-
|
82
|
+
unity_path = ENV[options.unity_path].nil? ? options.unity_path : ENV[options.unity_path]
|
83
|
+
need_to_build_ios, root_working_dir, need_chdir_to_root_working_dir = unity_build(options.unity_platform, unity_path, options.development_build, options.keystore_path, options.keystore_password, options.key_alias_name, options.key_alias_password)
|
78
84
|
end
|
79
85
|
|
80
86
|
if need_to_build_ios
|
@@ -511,7 +517,7 @@ def build(config, ipa, ndsym, icon_tagger)
|
|
511
517
|
end
|
512
518
|
end
|
513
519
|
|
514
|
-
def unity_build(unity_platform, unity_path)
|
520
|
+
def unity_build(unity_platform, unity_path, development_build, keystore_path, keystore_password, key_alias_name, key_alias_password)
|
515
521
|
root_working_dir = nil
|
516
522
|
need_chdir_to_root_working_dir = false
|
517
523
|
need_to_build_ios = false
|
@@ -530,16 +536,15 @@ def unity_build(unity_platform, unity_path)
|
|
530
536
|
abort("Copy UnityBuildAutomationScripts error! #{unity_editor_dir} doesn't exist!")
|
531
537
|
end
|
532
538
|
|
533
|
-
unity = ENV[unity_path].nil? ? unity_path : ENV[unity_path]
|
534
|
-
|
535
539
|
case unity_platform
|
536
540
|
when 'ios'
|
537
541
|
need_to_build_ios = true
|
538
542
|
root_working_dir = Dir.pwd
|
539
543
|
ios_project_path = File.join(root_working_dir, UNITY_BUILDS_IOS_PATH)
|
544
|
+
development_build_arg = development_build ? ';developmentBuild=' : ''
|
540
545
|
|
541
546
|
p('Generating IOS project from UNITY project ...')
|
542
|
-
unity_success = system("#{
|
547
|
+
unity_success = system("#{unity_path} -projectPath '#{root_working_dir}' -executeMethod NIXBuilder.MakeiOSBuild -projectPath #{root_working_dir.shellescape} -batchmode -logFile -quit -customArgs:buildPath='#{ios_project_path}#{development_build_arg}'")
|
543
548
|
abort('iOS build unity error!') unless unity_success
|
544
549
|
p('IOS project was generated.')
|
545
550
|
|
@@ -552,7 +557,13 @@ def unity_build(unity_platform, unity_path)
|
|
552
557
|
$project_target_to_build = 'Unity-iPhone'
|
553
558
|
when 'android'
|
554
559
|
unity_build_android = File.join(BUILD_SCRIPTS_PATH, 'UnityBuildAndroid.py')
|
555
|
-
|
560
|
+
development_build_arg = development_build ? '--development-build' : ''
|
561
|
+
keystore_path_arg = keystore_path ? "--keystore-path #{keystore_path}" : ''
|
562
|
+
keystore_password_arg = keystore_password ? "--keystore-password #{keystore_password}" : ''
|
563
|
+
key_alias_name_arg = key_alias_name ? "--key-alias-name #{key_alias_name}" : ''
|
564
|
+
key_alias_password_arg = key_alias_password ? "--key-alias-password #{key_alias_password}" : ''
|
565
|
+
|
566
|
+
build_success = system("#{unity_build_android} --unity-path #{unity_path} #{development_build_arg} #{keystore_path_arg} #{keystore_password_arg} #{key_alias_name_arg} #{key_alias_password_arg}")
|
556
567
|
abort('Android build unity error!') unless build_success
|
557
568
|
|
558
569
|
clean_working_copy(false)
|
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.48
|
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-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|