modified: Cargo.lock
modified: Cargo.toml modified: src/lib.rs
This commit is contained in:
parent
93803ac696
commit
c55143440e
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -353,7 +353,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "nicotine"
|
||||
version = "0.1.15"
|
||||
version = "0.1.16"
|
||||
dependencies = [
|
||||
"zip-extract",
|
||||
]
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "nicotine"
|
||||
version = "0.1.15"
|
||||
version = "0.1.16"
|
||||
edition = "2024"
|
||||
description = "A small rust crate for patching mojang's Authlib"
|
||||
authors = ["alterwain"]
|
||||
|
@ -76,12 +76,14 @@ fn zip_dir(
|
||||
src_dir: &Path,
|
||||
writer: &str,
|
||||
) -> Result<(), Box<dyn Error + Sync + Send>> {
|
||||
let mut a = Command::new("tmp/7za.exe")
|
||||
let mut a = Command::new(std::fs::canonicalize(PathBuf::from("./tmp/7za.exe")).unwrap())
|
||||
.current_dir(src_dir)
|
||||
.arg("a")
|
||||
.arg("-tzip")
|
||||
.arg("-mx=0")
|
||||
.arg(writer)
|
||||
.arg([src_dir.to_str().unwrap(), "\\", "*"].concat())
|
||||
.arg("*")
|
||||
.arg("-r")
|
||||
.spawn()?;
|
||||
a.wait()?;
|
||||
Ok(())
|
||||
|
Loading…
x
Reference in New Issue
Block a user