From 81ac2ae8c6f97650660c5797a4451d20906125d3 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Wed, 28 Jan 2026 19:12:08 -0300 Subject: [PATCH] Fix tasks module compilation and add Windows protection installer support - Fix installer.rs: Add Windows OS support with check_admin(), configure_windows_security(), and update_windows_signatures() - Fix installer.rs: Remove duplicate check_root() function and fix invalid #[cfg] attributes - Fix installer.rs: Use runtime cfg!(windows) checks instead of compile-time attributes - Fix ui_server: Extract bot name from URL path and pass to frontend via window.__INITIAL_BOT_NAME__ - Fix tasks.js: Wrap activePollingTaskId, pollingInterval, pendingManifestUpdates, and taskStyleElement in checks to prevent redeclaration - Fix autotask.html: Use absolute paths for all CSS/JS references (/suite/tasks/*) - Fix navigation: Update tasks.html references to autotask.html in base.html, home.html, and index.html --- botserver | 2 +- botui | 2 +- restart.sh | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/botserver b/botserver index 51c8a53..26963f2 160000 --- a/botserver +++ b/botserver @@ -1 +1 @@ -Subproject commit 51c8a53a902ce70c89bae9c693ae2dddf2143238 +Subproject commit 26963f2cafb7a98dda6fb7fab863acbf77c0fe3a diff --git a/botui b/botui index db0f0c1..27e839f 160000 --- a/botui +++ b/botui @@ -1 +1 @@ -Subproject commit db0f0c1178ad8cc30a2dea4502fe7f55765a4561 +Subproject commit 27e839f22ade5277cf8f5ccccf678308658c3eb1 diff --git a/restart.sh b/restart.sh index 37c2cb9..e559e0c 100755 --- a/restart.sh +++ b/restart.sh @@ -1,8 +1,12 @@ +clear pkill rustc -9 pkill botserver -9 pkill botui -9 -cd botserver +cd botui +cargo build & +cd ../botserver cargo build cargo run -- --noconsole & cd ../botui cargo run & +cd ..