From a2c9670109d5a62699e1a3c604f84d85d4bc99ba Mon Sep 17 00:00:00 2001 From: Evgeny Fomin Date: Thu, 22 Aug 2024 12:00:02 +0200 Subject: [PATCH] update grovedbg app --- grovedb/build.rs | 4 ++-- grovedb/src/debugger.rs | 19 ++++++++----------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/grovedb/build.rs b/grovedb/build.rs index 83a38900..d8da9aa7 100644 --- a/grovedb/build.rs +++ b/grovedb/build.rs @@ -6,8 +6,8 @@ fn main() { use sha2::{digest::FixedOutput, Digest, Sha256}; const GROVEDBG_SHA256: [u8; 32] = - hex!("c6636f10b43c703128b621a7c4b94139a1a7d0a603e26fca1771734a7994bb7c"); - const GROVEDBG_VERSION: &str = "v1.0.0-rc.5"; + hex!("ea7d9258973aa765eaf5064451fc83efa22e0ce6eaf2938507e2703571364e35"); + const GROVEDBG_VERSION: &str = "v1.0.0-rc.6"; let out_dir = PathBuf::from(&env::var_os("OUT_DIR").unwrap()); let grovedbg_zip_path = out_dir.join("grovedbg.zip"); diff --git a/grovedb/src/debugger.rs b/grovedb/src/debugger.rs index 09c9c619..1e03bb43 100644 --- a/grovedb/src/debugger.rs +++ b/grovedb/src/debugger.rs @@ -35,17 +35,14 @@ where A: ToSocketAddrs + Send + 'static, { std::thread::spawn(move || { - // let grovedbg_tmp = - // tempfile::tempdir().expect("cannot create tempdir for grovedbg - // contents"); let grovedbg_zip = - // grovedbg_tmp.path().join("grovedbg.zip"); let grovedbg_www = - // grovedbg_tmp.path().join("grovedbg_www"); - - // fs::write(&grovedbg_zip, &GROVEDBG_ZIP).expect("cannot crate grovedbg.zip"); - // zip_extensions::read::zip_extract(&grovedbg_zip, &grovedbg_www) - // .expect("cannot extract grovedbg contents"); - - let grovedbg_www = "/home/yolo/dash/grovedbg/dist"; + let grovedbg_tmp = + tempfile::tempdir().expect("cannot create tempdir for grovedbg contents"); + let grovedbg_zip = grovedbg_tmp.path().join("grovedbg.zip"); + let grovedbg_www = grovedbg_tmp.path().join("grovedbg_www"); + + fs::write(&grovedbg_zip, &GROVEDBG_ZIP).expect("cannot crate grovedbg.zip"); + zip_extensions::read::zip_extract(&grovedbg_zip, &grovedbg_www) + .expect("cannot extract grovedbg contents"); let (shutdown_send, mut shutdown_receive) = mpsc::channel::<()>(1); let app = Router::new()