docs: record runtime and release constraints

This commit is contained in:
morluto
2026-07-12 08:45:35 +08:00
parent e32906afb7
commit 62ede515b7
24 changed files with 206 additions and 57 deletions
+15 -1
View File
@@ -38,7 +38,19 @@ export interface HopperApplicationLauncherOptions {
readonly bridgeScriptPath: string;
}
/** Launches Hopper through its documented CLI and injects only the owned bridge script. */
/**
* Launches Hopper through its documented CLI and injects only REA's owned bridge.
*
* Hopper's `hopper` helper internally issues an AppleScript `activate` command.
* Consequently, opening a target may bring Hopper to the foreground even though
* REA first asks macOS to start the application hidden and in the background.
* REA cannot reliably suppress that activation without replacing Hopper's
* supported launcher; callers must treat possible foreground UI as an upstream
* Hopper constraint, not as evidence that analysis failed.
*
* The returned process is the short-lived launcher helper, not the Hopper app,
* so REA does not claim ownership of the application's lifetime.
*/
export class HopperApplicationLauncher implements BridgeLauncher {
constructor(readonly options: HopperApplicationLauncherOptions) {}
@@ -103,6 +115,8 @@ const prepareHopperApplication = async (
if (appBundle === undefined) return;
const executablePath = join(appBundle, "Contents/MacOS/Hopper Disassembler");
if (await processIsRunning(executablePath)) return;
// This reduces activation when Hopper is cold, but the vendor launcher that
// follows may still activate its window. See HopperApplicationLauncher.
await execFileAsync("/usr/bin/open", [
"--hide",
"--background",