creating2morrow / neveko

full-stack privacy application with enciphered messaging, monero multisig and built-in i2p marketplace
http://neveko.i2p
MIT License
34 stars 2 forks source link

Remove calls to binaries #36

Open creating2morrow opened 8 months ago

creating2morrow commented 8 months ago
creating2morrow commented 8 months ago
22 results - 3 files

neveko-core/src/i2p.rs:
  107      let path = args.i2p_zero_dir;
  108:     let output = Command::new(format!("{}/router/bin/i2p-zero", path)).spawn();
  109      match output {

  133      let path = args.i2p_zero_dir;
  134:     let output = Command::new(format!("{}/router/bin/tunnel-control.sh", path))
  135          .args([

  149      let path = args.i2p_zero_dir;
  150:     let output = Command::new(format!("{}/router/bin/tunnel-control.sh", path))
  151          .args(["socks.create", &format!("{}", get_i2p_socks_proxy_port())])

  161      let path = args.i2p_zero_dir;
  162:     let output = Command::new(format!("{}/router/bin/tunnel-control.sh", path))
  163          .args([

  196      let port = get_i2p_proxy_port();
  197:     let output = Command::new(format!("{}/router/bin/tunnel-control.sh", path))
  198          .args(["http.create", &port])

  251      let port = get_i2p_proxy_port();
  252:     let output = Command::new(format!("{}/router/bin/tunnel-control.sh", path))
  253          .args(["http.state", &port])

neveko-core/src/monero.rs:
   195          args.push("--stagenet");
   196:         let output = Command::new(format!("{}/monerod", bin_dir))
   197              .args(args)

   205          args.push(&anon_inbound);
   206:         let output = Command::new(format!("{}/monerod", bin_dir))
   207              .args(args)

   265          args.push("--stagenet");
   266:         let output = Command::new(format!("{}/monero-wallet-rpc", bin_dir))
   267              .args(args)

   271      } else {
   272:         let output = Command::new(format!("{}/monero-wallet-rpc", bin_dir))
   273              .args(args)

  1614      };
  1615:     let mut output = Command::new(format!("{}/monero-wallet-cli", bin_dir))
  1616          .stdin(Stdio::piped())

neveko-core/src/utils.rs:
  202      }
  203:     let output = std::process::Command::new("./neveko")
  204          .args(args)

  384      );
  385:     let s_output = std::process::Command::new("mkdir")
  386          .args(["-p", &format!("{}/stagenet/wallet", file_path)])

  389      debug!("{:?}", s_output);
  390:     let m_output = std::process::Command::new("mkdir")
  391          .args(["-p", &format!("{}/wallet", file_path)])

  519      if cm {
  520:         let xmrd_output = std::process::Command::new("pkill")
  521              .arg("monerod")

  526      if !cm {
  527:         let neveko_output = std::process::Command::new("pkill")
  528              .arg("neveko")

  532      }
  533:     let rpc_output = std::process::Command::new("killall")
  534          .arg("monero-wallet-rpc")

  589          );
  590:         let curl = std::process::Command::new("curl")
  591              .args(["-LO#", &link])

  596                  tokio::time::sleep(std::time::Duration::from_secs(1)).await;
  597:                 let unzip_output = std::process::Command::new("unzip")
  598                      .arg(&i2p_zero_zip)

  613          );
  614:         let curl = std::process::Command::new("curl")
  615              .args(["-O#", &link])

  620                  tokio::time::sleep(std::time::Duration::from_secs(1)).await;
  621:                 let tar_output = std::process::Command::new("tar")
  622                      .args(["-xvf", crate::MONERO_RELEASE_VERSION])

  645      };
  646:     let sha_output = std::process::Command::new("sha256sum")
  647          .arg(filename)
kn0sys commented 3 months ago

i2pd-bindings development appears to have stalled. I will try to integrate java rust i2p bindings. https://github.com/kn0sys/j4-i2p-rs