mirror of
https://github.com/morluto/rea.git
synced 2026-12-03 13:41:17 -05:00
refactor(ghidra): share the executable file probe (#14573)
This commit is contained in:
@@ -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