mirror of
https://github.com/morluto/rea.git
synced 2026-11-30 02:17:09 +00:00
refactor(ghidra): share the executable file probe (#14573)
This commit is contained in:
1 parent
0f81637e08
commit
e22bc84894
1 file changed
+1
-10
@@ -1134,16 +1134,7 @@ export const systemGhidraInstallationHost = (): GhidraInstallationHost => ({
|
||||
}
|
||||
},
|
||||
executableHeader: readGhidraExecutableHeader,
|
||||
executable(path) {
|
||||
try {
|
||||
accessSync(path, constants.X_OK);
|
||||
return statSync(path).isFile();
|
||||
} catch (cause: unknown) {
|
||||
// best-effort cleanup: optional executable probing; failure means missing.
|
||||
void cause;
|
||||
return false;
|
||||
}
|
||||
},
|
||||
executable: executablePath,
|
||||
probeJava: probeGhidraJava,
|
||||
discoverInstallDirOnPath: discoverGhidraInstallationOnPath,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user