mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-13 04:03:30 +00:00
24 lines
929 B
TypeScript
24 lines
929 B
TypeScript
import type { NotarizeOptions } from '@electron/notarize'
|
|
import type { MacOSSigningEnvironment } from './desktop-release-environment.mjs'
|
|
|
|
/** Completed electron-builder artifact needed for disk-image notarization. */
|
|
export interface DesktopBuildArtifact {
|
|
readonly file: string
|
|
}
|
|
|
|
/**
|
|
* Submit one generated DMG to Apple, staple its ticket, and verify Gatekeeper acceptance.
|
|
* @param artifact - Completed electron-builder artifact.
|
|
* @param env - Packaging environment.
|
|
* @param expected - Public release identity.
|
|
* @param submit - Notary submission implementation.
|
|
* @param verify - Disk-image qualification implementation.
|
|
*/
|
|
export function notarizeMacOSDiskImageArtifact(
|
|
artifact: DesktopBuildArtifact,
|
|
env: NodeJS.ProcessEnv,
|
|
expected: MacOSSigningEnvironment,
|
|
submit?: (options: NotarizeOptions) => Promise<void>,
|
|
verify?: (path: string, expected: MacOSSigningEnvironment) => void,
|
|
): Promise<void>
|