Commit 246a53fe authored by Vadim Vlasov's avatar Vadim Vlasov

Added optional batch mode, no graphics, quit for Unity.

parent 061b454e
......@@ -10,3 +10,5 @@ fastlane/README.md
fastlane/report.xml
coverage
test-results
.idea
.DS_Store
......@@ -11,10 +11,18 @@ module Fastlane
end
build_cmd << " -projectPath #{params[:project_path]}"
build_cmd << " -batchmode"
build_cmd << " -quit"
build_cmd << " -nographics"
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 << " -executeMethod #{params[:execute_method]}"
build_cmd << " -buildTarget #{params[:build_target]}"
......@@ -80,6 +88,21 @@ module Fastlane
description: "Quit Timeout",
optional: true,
default_value: 300),
FastlaneCore::ConfigItem.new(key: :no_graphics,
env_name: "UNITY_NO_GRAPHICS",
description: "Disable graphics mode",
optional: true,
default_value: true),
FastlaneCore::ConfigItem.new(key: :batch_mode,
env_name: "UNITY_BATCH_MODE",
description: "Use batch mode",
optional: true,
default_value: true),
FastlaneCore::ConfigItem.new(key: :quit,
env_name: "UNITY_QUIT",
optional: true,
description: "Close Unity after script execution",
default_value: true),
]
end
......
module Fastlane
module Furylion
VERSION = "1.0.0"
VERSION = "1.1.0"
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