Skip to content

Commit

Permalink
trying again
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Oct 18, 2024
1 parent d8cb4ef commit 1eebe1a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions bin/src/modules/binarize/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl Module for Binarize {
};
let path = PathBuf::from(tools_path)
.join("Binarize")
.join("binarize.exe");
.join("binarize_x64.exe");
println!("path: {:?} - {}", path, path.exists());
if path.exists() {
self.command = Some(path.display().to_string());
Expand Down Expand Up @@ -208,8 +208,7 @@ impl Module for Binarize {
.trim_start_matches('/')
.trim_start_matches(&addon.folder().to_string())
.trim_start_matches('/')
.trim_end_matches(&entry.filename())
.replace('/', "\\"),
.trim_end_matches(&entry.filename()),
);
let tmp_outed = tmp_out.join(entry.parent().as_str().trim_start_matches('/'));

Expand Down Expand Up @@ -268,16 +267,18 @@ impl Module for Binarize {
} else {
let mut cmd = Command::new("wine");
cmd.arg(exe);
cmd.env("WINEPREFIX", "/tmp/hemtt-wine");
std::fs::create_dir_all("/tmp/hemtt-wine").expect("should be able to create wine prefix");
cmd
};
cmd.args([
"-norecurse",
"-always",
"-silent",
"-maxProcesses=0",
&target.source,
&target.output,
&target.entry,
&target.source.replace('/', "\\"),
&target.output.replace('/', "\\"),
&target.entry.replace('/', "\\"),
])
.current_dir(&tmp_source);
trace!("{:?}", cmd);
Expand Down

0 comments on commit 1eebe1a

Please sign in to comment.