mirror of
https://github.com/xavo95/repak.git
synced 2025-01-18 19:04:07 +00:00
Fix packing with backslashes on windows
This commit is contained in:
parent
01297a81f8
commit
1f679b8878
2 changed files with 4 additions and 1 deletions
|
@ -15,6 +15,7 @@ aes = { workspace = true }
|
||||||
base64 = { workspace = true }
|
base64 = { workspace = true }
|
||||||
clap = { version = "4.1.4", features = ["derive"] }
|
clap = { version = "4.1.4", features = ["derive"] }
|
||||||
path-clean = "0.1.0"
|
path-clean = "0.1.0"
|
||||||
|
path-slash = "0.2.1"
|
||||||
rayon = "1.6.1"
|
rayon = "1.6.1"
|
||||||
repak = { version = "0.1.1", path = "../repak" }
|
repak = { version = "0.1.1", path = "../repak" }
|
||||||
strum = { workspace = true }
|
strum = { workspace = true }
|
||||||
|
|
|
@ -5,6 +5,7 @@ use std::path::{Path, PathBuf};
|
||||||
use clap::builder::TypedValueParser;
|
use clap::builder::TypedValueParser;
|
||||||
use clap::{Parser, Subcommand};
|
use clap::{Parser, Subcommand};
|
||||||
use path_clean::PathClean;
|
use path_clean::PathClean;
|
||||||
|
use path_slash::PathExt;
|
||||||
use rayon::prelude::*;
|
use rayon::prelude::*;
|
||||||
use strum::VariantNames;
|
use strum::VariantNames;
|
||||||
|
|
||||||
|
@ -270,7 +271,8 @@ fn pack(args: ActionPack) -> Result<(), repak::Error> {
|
||||||
let rel = &p
|
let rel = &p
|
||||||
.strip_prefix(input_path)
|
.strip_prefix(input_path)
|
||||||
.expect("file not in input directory")
|
.expect("file not in input directory")
|
||||||
.to_string_lossy();
|
.to_slash()
|
||||||
|
.expect("failed to convert to slash path");
|
||||||
if args.verbose {
|
if args.verbose {
|
||||||
println!("packing {}", &rel);
|
println!("packing {}", &rel);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue