Skip to content

Commit

Permalink
Branding - update scheduled task name on Windows SSH remote deploy
Browse files Browse the repository at this point in the history
This resolves an issue where the ScheduledTask created by a Blazium master for a remote target machine still uses upstream project name.
  • Loading branch information
Tekisasu-JohnK authored and jss2a98aj committed Oct 19, 2024
1 parent aa690ee commit b0a9256
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions platform/windows/export/export_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,13 +433,13 @@ void EditorExportPlatformWindows::get_export_options(List<ExportOption> *r_optio
"$trigger = New-ScheduledTaskTrigger -Once -At 00:00\n"
"$settings = New-ScheduledTaskSettingsSet\n"
"$task = New-ScheduledTask -Action $action -Trigger $trigger -Settings $settings\n"
"Register-ScheduledTask godot_remote_debug -InputObject $task -Force:$true\n"
"Start-ScheduledTask -TaskName godot_remote_debug\n"
"while (Get-ScheduledTask -TaskName godot_remote_debug | ? State -eq running) { Start-Sleep -Milliseconds 100 }\n"
"Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue";
"Register-ScheduledTask blazium_remote_debug -InputObject $task -Force:$true\n"
"Start-ScheduledTask -TaskName blazium_remote_debug\n"
"while (Get-ScheduledTask -TaskName blazium_remote_debug | ? State -eq running) { Start-Sleep -Milliseconds 100 }\n"
"Unregister-ScheduledTask -TaskName blazium_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue";

String cleanup_script = "Stop-ScheduledTask -TaskName godot_remote_debug -ErrorAction:SilentlyContinue\n"
"Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue\n"
String cleanup_script = "Stop-ScheduledTask -TaskName blazium_remote_debug -ErrorAction:SilentlyContinue\n"
"Unregister-ScheduledTask -TaskName blazium_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue\n"
"Remove-Item -Recurse -Force '{temp_dir}'";

r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "ssh_remote_deploy/enabled"), false, true));
Expand Down

0 comments on commit b0a9256

Please sign in to comment.