From c5e132a1f085f6c4dcd9d9508beff4a048f05acb Mon Sep 17 00:00:00 2001 From: alterwain Date: Tue, 18 Mar 2025 18:04:31 +0300 Subject: [PATCH] modified: Cargo.toml --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/lib.rs | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cad73a4..435fca2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -353,7 +353,7 @@ dependencies = [ [[package]] name = "nicotine" -version = "0.1.12" +version = "0.1.13" dependencies = [ "zip-extract", ] diff --git a/Cargo.toml b/Cargo.toml index c4761ab..2672136 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nicotine" -version = "0.1.12" +version = "0.1.13" edition = "2024" description = "A small rust crate for patching mojang's Authlib" authors = ["alterwain"] diff --git a/src/lib.rs b/src/lib.rs index f5e1efa..6480bac 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -76,12 +76,13 @@ fn zip_dir( src_dir: &Path, writer: &str, ) -> Result<(), Box> { - let _a = Command::new("tmp/7za.exe") + let mut a = Command::new("tmp/7za.exe") .arg("a") .arg("-tzip") .arg("-mx=0") .arg(writer) .arg([src_dir.to_str().unwrap(), "/", "*"].concat()) .spawn()?; + a.wait()?; Ok(()) }