diff --git a/CHANGELOG.md b/CHANGELOG.md index 9cc7ae8..ef4b4ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src-tauri/src/launcher.rs b/src-tauri/src/launcher.rs index cdbeeec..bcc4a42 100644 --- a/src-tauri/src/launcher.rs +++ b/src-tauri/src/launcher.rs @@ -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);