rename temp extracted app

This commit is contained in:
nab138
2025-11-03 22:09:57 -05:00
parent 22f9384594
commit df2d062ca1
3 changed files with 4 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ name = "isideload"
description = "Sideload iOS/iPadOS applications"
license = "MPL-2.0"
authors = ["Nicholas Sharp <nab@nabdev.me>"]
version = "0.1.12"
version = "0.1.13"
edition = "2024"
repository = "https://github.com/nab138/isideload"
documentation = "https://docs.rs/isideload"

View File

@@ -24,7 +24,8 @@ impl Application {
if path.is_file() {
let temp_dir = std::env::temp_dir();
let temp_path = temp_dir.join(path.file_name().unwrap());
let temp_path = temp_dir
.join(path.file_name().unwrap().to_string_lossy().to_string() + "_extracted");
if temp_path.exists() {
std::fs::remove_dir_all(&temp_path).map_err(|e| Error::Filesystem(e))?;
}