nixenvironment 0.0.83 → 0.0.84
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/nixenvironment +7 -4
- data/legacy/UnityBuildAutomationScripts/NIXBuilder.cs +11 -10
- 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: 885e7d3cf7ebae4ff993b04113e117f5ec20a49e
|
4
|
+
data.tar.gz: 93dd9c002d247f421509df1c149525b17c29f0a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2afff51da401df95297694be1e515a86ae1f9c02df6d762961314787e737ff2cb3aea0a47fc8aa105943c0c617a3ca2c99207296ca17be968d8ecb7231e161ea
|
7
|
+
data.tar.gz: 540d502ed38bae8aa4cebdf6068ac6c776ce62099c3b0048984bb039f73b20ba82aab8b888bb6fecc23cea8ee21a19c6e13b35613cf2a57f60f3a4f7b401ae87
|
data/bin/nixenvironment
CHANGED
@@ -74,7 +74,8 @@ command :build do |c|
|
|
74
74
|
c.option '--xcconfig PATH', String, 'Specify the path to .xcconfig file'
|
75
75
|
c.option '--ipa TYPES', String, 'Select sign (device, resigned_device, resigned_adhoc, resigned_appstore)'
|
76
76
|
c.option '--unity_path PATH', String, 'Select unity executable path (UNITY, UNITY_4 or custom path)'
|
77
|
-
c.option '--development_build', 'Enable
|
77
|
+
c.option '--development_build', 'Enable Development flag in Unity project'
|
78
|
+
c.option '--connect_profiler', 'Enable ConnectWithProfiler flag in Unity project'
|
78
79
|
c.option '--keystore_path PATH', String, 'Specify the path to .keystore file'
|
79
80
|
c.option '--keystore_password PASSWORD', String, 'Specify the password for accessing a .keystore file'
|
80
81
|
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'
|
@@ -98,7 +99,8 @@ command :build do |c|
|
|
98
99
|
|
99
100
|
if is_unity_platform
|
100
101
|
unity_path = ENV[options.unity_path] || options.unity_path
|
101
|
-
unity_build(options.config, unity_platform, unity_path, options.development_build, options.
|
102
|
+
unity_build(options.config, unity_platform, unity_path, options.development_build, options.connect_profiler,
|
103
|
+
options.keystore_path, options.keystore_password, options.key_alias_name, options.key_alias_password)
|
102
104
|
need_to_build_ios = unity_platform == 'ios'
|
103
105
|
need_to_process_macos_build = unity_platform == 'macos'
|
104
106
|
need_to_process_winphone_build = unity_platform == 'winphone'
|
@@ -554,7 +556,7 @@ def build(config, xcconfig, ipa, ndsym, icon_tagger)
|
|
554
556
|
success('Build complete!')
|
555
557
|
end
|
556
558
|
|
557
|
-
def unity_build(configuration, unity_platform, unity_path, development_build, keystore_path, keystore_password, key_alias_name, key_alias_password)
|
559
|
+
def unity_build(configuration, unity_platform, unity_path, development_build, connect_profiler, keystore_path, keystore_password, key_alias_name, key_alias_password)
|
558
560
|
save_revision
|
559
561
|
|
560
562
|
if File.directory?(UNITY_EDITOR_DIR)
|
@@ -567,9 +569,10 @@ def unity_build(configuration, unity_platform, unity_path, development_build, ke
|
|
567
569
|
when 'ios'
|
568
570
|
build_path_arg = "buildPath=#{UNITY_IOS_PROJECT_PATH}"
|
569
571
|
development_build_arg = development_build ? ';developmentBuild=' : ''
|
572
|
+
connect_profiler_arg = connect_profiler ? ';connectWithProfiler=' : ''
|
570
573
|
|
571
574
|
puts 'Generating IOS project from UNITY project ...'
|
572
|
-
unity_success = system("#{unity_path} -projectPath '#{Dir.pwd}' -batchmode -logFile -quit -executeMethod NIXBuilder.MakeiOSBuild -customArgs:'#{build_path_arg}#{development_build_arg}'")
|
575
|
+
unity_success = system("#{unity_path} -projectPath '#{Dir.pwd}' -batchmode -logFile -quit -executeMethod NIXBuilder.MakeiOSBuild -customArgs:'#{build_path_arg}#{development_build_arg}#{connect_profiler_arg}'")
|
573
576
|
error('iOS build unity error!') unless unity_success
|
574
577
|
success("IOS project was generated.\n")
|
575
578
|
when 'macos'
|
@@ -12,18 +12,14 @@ using UnityEditor;
|
|
12
12
|
|
13
13
|
public static class NIXBuilder
|
14
14
|
{
|
15
|
-
private const string BundleVersionCodeArgument
|
16
|
-
|
17
|
-
private const string
|
18
|
-
|
19
|
-
private const string DevelopmentBuildArgument = "developmentBuild";
|
20
|
-
|
21
|
-
private const string KeyStorePathArgument = "keyStorePath";
|
15
|
+
private const string BundleVersionCodeArgument = "bundleVersionCode";
|
16
|
+
private const string BuildPathArgument = "buildPath";
|
17
|
+
private const string DevelopmentBuildArgument = "developmentBuild";
|
18
|
+
private const string ConnectWithProfilerArgument = "connectWithProfiler";
|
22
19
|
|
20
|
+
private const string KeyStorePathArgument = "keyStorePath";
|
23
21
|
private const string KeyStorePasswordArgument = "keyStorePassword";
|
24
|
-
|
25
|
-
private const string KeyAliasNameArgument = "keyAliasName";
|
26
|
-
|
22
|
+
private const string KeyAliasNameArgument = "keyAliasName";
|
27
23
|
private const string KeyAliasPasswordArgument = "keyAliasPassword";
|
28
24
|
|
29
25
|
public static string[] GetScenePaths()
|
@@ -129,6 +125,11 @@ public static class NIXBuilder
|
|
129
125
|
buildOptions |= BuildOptions.Development;
|
130
126
|
}
|
131
127
|
|
128
|
+
if (CommandLineReader.GetCustomArgument(ConnectWithProfilerArgument) != null)
|
129
|
+
{
|
130
|
+
buildOptions |= BuildOptions.ConnectWithProfiler;
|
131
|
+
}
|
132
|
+
|
132
133
|
return buildOptions;
|
133
134
|
}
|
134
135
|
}
|
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.
|
4
|
+
version: 0.0.84
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-04-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cocoapods
|