diff --git a/agent/src/services/nodex.rs b/agent/src/services/nodex.rs index 3dbf123a..cf154a4a 100644 --- a/agent/src/services/nodex.rs +++ b/agent/src/services/nodex.rs @@ -5,7 +5,7 @@ use crate::{app_config, server_config}; use anyhow; use controller::managers::{ - resource::{ResourceManagerTrait, UnixResourceManager}, + resource::ResourceManagerTrait, runtime::{FeatType, FileHandler, RuntimeManager, State}, }; use controller::validator::{ @@ -23,6 +23,7 @@ use std::{ #[cfg(unix)] mod unix_imports { + pub use controller::managers::resource::UnixResourceManager; pub use nix::{ sys::signal::{self, Signal}, unistd::{execvp, fork, setsid, ForkResult, Pid}, @@ -33,6 +34,14 @@ mod unix_imports { #[cfg(unix)] use unix_imports::*; +#[cfg(windows)] +mod windows_imports { + pub use controller::managers::resource::WindowsResourceManager; +} + +#[cfg(windows)] +use windows_imports::*; + pub struct NodeX { did_repository: DidRepositoryImpl, } diff --git a/examples/python/src/update_version.py b/examples/python/src/update_version.py index 6d32d66f..cd485fde 100644 --- a/examples/python/src/update_version.py +++ b/examples/python/src/update_version.py @@ -10,8 +10,8 @@ payload = { "message": { - "binary_url": "https://example.com/nodex-agent-1.0.0.zip", - "path": "/tmp", + "binary_url": "https://github.com/nodecross/nodex/releases/download/v3.3.0/nodex-agent-x86_64.zip", + "path": "/tmp/nodex", } }