Revert "fix: prefer .exe/.com over .bat in setup executable detection"
Build & Deploy / build-and-deploy (push) Successful in 15s

This reverts commit 6a18020c9f.
This commit is contained in:
Hermes Agent
2026-06-11 12:22:43 +02:00
parent 6c07f29ab9
commit a29b146a57
@@ -105,13 +105,7 @@ public class ExecutableDetector {
});
if (candidates.isEmpty()) return null;
candidates.sort(Comparator
.<Candidate, Integer>comparingInt(c -> {
String n = c.path().toLowerCase();
return n.endsWith(".bat") ? 1 : 0; // prefer .exe/.com over .bat
})
.thenComparingInt(Candidate::depth)
.thenComparingLong(Candidate::size));
candidates.sort(Comparator.comparingInt(Candidate::depth).thenComparingLong(Candidate::size));
return candidates.getFirst().path();
}