diff --git a/repak_cli/Cargo.toml b/repak_cli/Cargo.toml index b134f1c..a296d4c 100644 --- a/repak_cli/Cargo.toml +++ b/repak_cli/Cargo.toml @@ -15,6 +15,7 @@ aes = { workspace = true } base64 = { workspace = true } clap = { version = "4.1.4", features = ["derive"] } path-clean = "0.1.0" +path-slash = "0.2.1" rayon = "1.6.1" repak = { version = "0.1.1", path = "../repak" } strum = { workspace = true } diff --git a/repak_cli/src/main.rs b/repak_cli/src/main.rs index 12e8d89..aa3972b 100644 --- a/repak_cli/src/main.rs +++ b/repak_cli/src/main.rs @@ -5,6 +5,7 @@ use std::path::{Path, PathBuf}; use clap::builder::TypedValueParser; use clap::{Parser, Subcommand}; use path_clean::PathClean; +use path_slash::PathExt; use rayon::prelude::*; use strum::VariantNames; @@ -270,7 +271,8 @@ fn pack(args: ActionPack) -> Result<(), repak::Error> { let rel = &p .strip_prefix(input_path) .expect("file not in input directory") - .to_string_lossy(); + .to_slash() + .expect("failed to convert to slash path"); if args.verbose { println!("packing {}", &rel); }