Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The release notes for each tag are taken from the section for that version.
## Unreleased

### Fixed
- **Fix and verify after a rebuild:** when the build finishes but its program is missing, the launcher says where it expected it and suggests checking antivirus, instead of telling you to press Install.
- **Linux builds of Windows-only games:** a build that fails because the project uses Windows-only libraries now says so in the log, instead of only showing the compiler's error.

## 1.2.1
Expand Down
11 changes: 10 additions & 1 deletion src-tauri/src/launcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3518,7 +3518,16 @@ fn fix_build(
}
stage(job, ctx, msg_str!("Rebuilding the missing program"));
install(job, ctx, p, project_installed(&p.repo), l)?;
let (exe, _) = crate::platform::program_for(&project_exe(p)?);
// The build just ran, so a missing program is not "not installed": the file is gone
// (antivirus often removes a new victory.exe) or the build left it elsewhere.
let expected = built_exe(&p.repo);
let found = project_exe(p).map_err(|_| {
format!(
"The build finished, but its program is not at {}. Check whether antivirus removed it, then press Fix and verify again.",
expected.display()
)
})?;
let (exe, _) = crate::platform::program_for(&found);
let mut c = Command::new(&exe);
c.arg("--version");
hide_window(&mut c);
Expand Down
Loading