Commit 93994e7f authored by Vadim Vlasov's avatar Vadim Vlasov

Added additional arguments for Unity

parent ef3319f2
...@@ -11,23 +11,14 @@ module Fastlane ...@@ -11,23 +11,14 @@ module Fastlane
end end
build_cmd << " -projectPath #{params[:project_path]}" build_cmd << " -projectPath #{params[:project_path]}"
build_cmd << " -batchmode" if params[:batch_mode]
if params[:batch_mode] build_cmd << " -quit" if params[:quit]
build_cmd << " -batchmode" build_cmd << " -nographics" if params[:no_graphics]
end
if params[:quit]
build_cmd << " -quit"
end
if params[:no_graphics]
build_cmd << " -nographics"
end
build_cmd << " -executeMethod #{params[:execute_method]}" build_cmd << " -executeMethod #{params[:execute_method]}"
build_cmd << " -buildTarget #{params[:build_target]}" build_cmd << " -buildTarget #{params[:build_target]}"
build_cmd << " -logFile #{params[:log_file]}" build_cmd << " -logFile #{params[:log_file]}"
build_cmd << " -quitTimeout #{params[:quit_timeout]}" build_cmd << " -quitTimeout #{params[:quit_timeout]}"
build_cmd << " #{params[:args]}"
UI.message "" UI.message ""
UI.message Terminal::Table.new( UI.message Terminal::Table.new(
...@@ -37,12 +28,12 @@ module Fastlane ...@@ -37,12 +28,12 @@ module Fastlane
) )
UI.message "" UI.message ""
UI.message "Start running" UI.message "Starting Unity..."
UI.message "" UI.message ""
sh build_cmd sh build_cmd
UI.success "Completed" UI.success "Unity process completed"
end end
##################################################### #####################################################
...@@ -106,6 +97,10 @@ module Fastlane ...@@ -106,6 +97,10 @@ module Fastlane
is_string: false, is_string: false,
description: "Close Unity after script execution", description: "Close Unity after script execution",
default_value: true), default_value: true),
FastlaneCore::ConfigItem.new(key: :args,
env_name: "UNITY_ARGS",
optional: true,
description: "Additional arguments to pass to the Unity"),
] ]
end end
......
module Fastlane module Fastlane
module Furylion module Furylion
VERSION = "1.1.1" VERSION = "1.1.2"
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment