Skip to content

Commit

Permalink
fix binarize on all paths
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Apr 18, 2023
1 parent 3b3ca58 commit 6ace493
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bin/src/modules/binarize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,15 @@ impl Module for Binarize {
break;
}
}
let tmp_sourced = tmp_sourced.unwrap().join(entry.parent().filename());
let tmp_sourced = tmp_sourced.unwrap().join(
entry
.as_str()
.trim_start_matches('/')
.trim_start_matches(&addon.folder().to_string())
.trim_start_matches('/')
.trim_end_matches(&entry.filename())
.replace('/', "\\"),
);
let tmp_outed = tmp_outed.unwrap();

targets.push(BinarizeTarget {
Expand Down

0 comments on commit 6ace493

Please sign in to comment.