Skip to content

Commit

Permalink
feat: build windows
Browse files Browse the repository at this point in the history
  • Loading branch information
da13da committed Dec 7, 2024
1 parent 6604b22 commit 15bc598
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion agent/src/services/nodex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand All @@ -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},
Expand All @@ -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<SideTreeClient>,
}
Expand Down
4 changes: 2 additions & 2 deletions examples/python/src/update_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
}

Expand Down

0 comments on commit 15bc598

Please sign in to comment.