You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #108412 from wjt/push-qmklovyxnnom
linux/bsd/mac: Use pkill to stop remote instance over SSH
This commit is contained in:
@@ -192,7 +192,7 @@ void EditorExportPlatformLinuxBSD::get_export_options(List<ExportOption> *r_opti
|
|||||||
"\"{temp_dir}/{exe_name}\" {cmd_args}";
|
"\"{temp_dir}/{exe_name}\" {cmd_args}";
|
||||||
|
|
||||||
String cleanup_script = "#!/usr/bin/env bash\n"
|
String cleanup_script = "#!/usr/bin/env bash\n"
|
||||||
"kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\")\n"
|
"pkill -x -f \"{temp_dir}/{exe_name} {cmd_args}\"\n"
|
||||||
"rm -rf \"{temp_dir}\"";
|
"rm -rf \"{temp_dir}\"";
|
||||||
|
|
||||||
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "ssh_remote_deploy/enabled"), false, true));
|
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "ssh_remote_deploy/enabled"), false, true));
|
||||||
|
|||||||
@@ -602,7 +602,7 @@ void EditorExportPlatformMacOS::get_export_options(List<ExportOption> *r_options
|
|||||||
"open \"{temp_dir}/{exe_name}.app\" --args {cmd_args}";
|
"open \"{temp_dir}/{exe_name}.app\" --args {cmd_args}";
|
||||||
|
|
||||||
String cleanup_script = "#!/usr/bin/env bash\n"
|
String cleanup_script = "#!/usr/bin/env bash\n"
|
||||||
"kill $(pgrep -x -f \"{temp_dir}/{exe_name}.app/Contents/MacOS/{exe_name} {cmd_args}\")\n"
|
"pkill -x -f \"{temp_dir}/{exe_name}.app/Contents/MacOS/{exe_name} {cmd_args}\"\n"
|
||||||
"rm -rf \"{temp_dir}\"";
|
"rm -rf \"{temp_dir}\"";
|
||||||
|
|
||||||
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "ssh_remote_deploy/enabled"), false, true));
|
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "ssh_remote_deploy/enabled"), false, true));
|
||||||
|
|||||||
Reference in New Issue
Block a user