Compare commits

..

2 Commits

Author SHA1 Message Date
Hermes Agent a29b146a57 Revert "fix: prefer .exe/.com over .bat in setup executable detection"
Build & Deploy / build-and-deploy (push) Successful in 15s
This reverts commit 6a18020c9f.
2026-06-11 12:22:43 +02:00
Hermes Agent 6c07f29ab9 Revert "fix: type witness syntax for Comparator.comparingInt"
This reverts commit dfc0589887.
2026-06-11 12:22:43 +02:00
@@ -105,13 +105,7 @@ public class ExecutableDetector {
});
if (candidates.isEmpty()) return null;
candidates.sort(Comparator
.<Candidate>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();
}