bin/nixenvironment in nixenvironment-0.0.83 vs bin/nixenvironment in nixenvironment-0.0.84
- old
+ new
@@ -72,11 +72,12 @@
c.description = 'Build project for selected configuration and make signed/resigned ipa'
c.option '--config NAME', String, 'Select configuration'
c.option '--xcconfig PATH', String, 'Specify the path to .xcconfig file'
c.option '--ipa TYPES', String, 'Select sign (device, resigned_device, resigned_adhoc, resigned_appstore)'
c.option '--unity_path PATH', String, 'Select unity executable path (UNITY, UNITY_4 or custom path)'
- c.option '--development_build', 'Enable Developmen flag in Unity project'
+ c.option '--development_build', 'Enable Development flag in Unity project'
+ c.option '--connect_profiler', 'Enable ConnectWithProfiler flag in Unity project'
c.option '--keystore_path PATH', String, 'Specify the path to .keystore file'
c.option '--keystore_password PASSWORD', String, 'Specify the password for accessing a .keystore file'
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'
c.option '--key_alias_password PASSWORD', String, 'Specify the password for accessing an alias name'
c.option '--unity_platform TARGET PLATFORM', String, 'Select target platform for unity build (ios | macos | android | winphone)'
@@ -96,11 +97,12 @@
$build_number = options.build_number
if is_unity_platform
unity_path = ENV[options.unity_path] || options.unity_path
- unity_build(options.config, unity_platform, unity_path, options.development_build, options.keystore_path, options.keystore_password, options.key_alias_name, options.key_alias_password)
+ unity_build(options.config, unity_platform, unity_path, options.development_build, options.connect_profiler,
+ options.keystore_path, options.keystore_password, options.key_alias_name, options.key_alias_password)
need_to_build_ios = unity_platform == 'ios'
need_to_process_macos_build = unity_platform == 'macos'
need_to_process_winphone_build = unity_platform == 'winphone'
end
@@ -552,11 +554,11 @@
end
success('Build complete!')
end
-def unity_build(configuration, unity_platform, unity_path, development_build, keystore_path, keystore_password, key_alias_name, key_alias_password)
+def unity_build(configuration, unity_platform, unity_path, development_build, connect_profiler, keystore_path, keystore_password, key_alias_name, key_alias_password)
save_revision
if File.directory?(UNITY_EDITOR_DIR)
FileUtils.cp_r(UNITY_BUILD_SCRIPTS_DIR, UNITY_EDITOR_DIR)
else
@@ -565,12 +567,13 @@
case unity_platform
when 'ios'
build_path_arg = "buildPath=#{UNITY_IOS_PROJECT_PATH}"
development_build_arg = development_build ? ';developmentBuild=' : ''
+ connect_profiler_arg = connect_profiler ? ';connectWithProfiler=' : ''
puts 'Generating IOS project from UNITY project ...'
- unity_success = system("#{unity_path} -projectPath '#{Dir.pwd}' -batchmode -logFile -quit -executeMethod NIXBuilder.MakeiOSBuild -customArgs:'#{build_path_arg}#{development_build_arg}'")
+ unity_success = system("#{unity_path} -projectPath '#{Dir.pwd}' -batchmode -logFile -quit -executeMethod NIXBuilder.MakeiOSBuild -customArgs:'#{build_path_arg}#{development_build_arg}#{connect_profiler_arg}'")
error('iOS build unity error!') unless unity_success
success("IOS project was generated.\n")
when 'macos'
build_path_arg = "buildPath=#{UNITY_MACOS_BUILD_PATH}"
development_build_arg = development_build ? ';developmentBuild=' : ''
\ No newline at end of file