Skip to content

Commit 415df25

Browse files
committed
fix: file extraction
1 parent e3f424a commit 415df25

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name = "pa-updater"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
authors = ["Toa Toastrejn <[email protected]>"]
55
edition = "2021"
6-
description = "Updater for Project-Apparatus, a Lethal Company cheat based on Infinite Company."
6+
description = "Official Installer and Updater for Project-Apparatus, a Lethal Company cheat based on Infinite Company."
77
repository = "https://github.com/toaaa/pa-updater"
8-
license = "MIT"
8+
license-file = "LICENSE.md"
99

1010
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1111

src/main.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ async fn extract_zip(zip_file: &Path) -> Result<(), Box<dyn std::error::Error>>
2626

2727
for i in 0..archive.len() {
2828
let mut file = archive.by_index(i)?;
29-
let file_path = file.mangled_name();
29+
let file_path = file.name();
30+
print!("Extracting {}...", file_path); // help
3031

3132
let dest_path = file_path;
3233

33-
if let Some(parent_dir) = dest_path.parent() {
34+
if let Some(parent_dir) = Path::new(dest_path).parent() {
3435
fs::create_dir_all(parent_dir)?;
3536
}
3637

0 commit comments

Comments
 (0)