Skip to content

platform/node/quarantine

ProgramRunner = (file, args) => Promise<number | null>

Defined in: app/src/platform/node/quarantine.ts:4

Runs a program and tells its exit code, or null when it could not run.

string

readonly string[]

Promise<number | null>

quarantine(path, agent, now, run?): Promise<boolean>

Defined in: app/src/platform/node/quarantine.ts:28

Marks a downloaded file as coming from the internet, as other browsers on macOS do, so Gatekeeper checks it before it opens. A file that has the mark already keeps its own.

string

The downloaded file.

string

The name of the browser, which macOS shows when it asks about the file.

number

The current time, in milliseconds since the epoch.

ProgramRunner = runProgram

Runs a program; Node.js by default.

Promise<boolean>

Whether the file has the mark now.