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

Added additional arguments for Unity

parent ef3319f2
......@@ -11,23 +11,14 @@ module Fastlane
end
build_cmd << " -projectPath #{params[:project_path]}"
if params[:batch_mode]
build_cmd << " -batchmode"
end
if params[:quit]
build_cmd << " -quit"
end
if params[:no_graphics]
build_cmd << " -nographics"
end
build_cmd << " -batchmode" if params[:batch_mode]
build_cmd << " -quit" if params[:quit]
build_cmd << " -nographics" if params[:no_graphics]
build_cmd << " -executeMethod #{params[:execute_method]}"
build_cmd << " -buildTarget #{params[:build_target]}"
build_cmd << " -logFile #{params[:log_file]}"
build_cmd << " -quitTimeout #{params[:quit_timeout]}"
build_cmd << " #{params[:args]}"
UI.message ""
UI.message Terminal::Table.new(
......@@ -37,12 +28,12 @@ module Fastlane
)
UI.message ""
UI.message "Start running"
UI.message "Starting Unity..."
UI.message ""
sh build_cmd
UI.success "Completed"
UI.success "Unity process completed"
end
#####################################################
......@@ -106,6 +97,10 @@ module Fastlane
is_string: false,
description: "Close Unity after script execution",
default_value: true),
FastlaneCore::ConfigItem.new(key: :args,
env_name: "UNITY_ARGS",
optional: true,
description: "Additional arguments to pass to the Unity"),
]
end
......
module Fastlane
module Furylion
VERSION = "1.1.1"
VERSION = "1.1.2"
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