mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-14 04:01:35 +00:00
30 lines
960 B
TypeScript
30 lines
960 B
TypeScript
/** Electron-builder fields asserted by the Desktop release tests. */
|
|
export interface DesktopElectronBuilderConfig {
|
|
readonly appId: string
|
|
readonly mac: {
|
|
readonly identity: string | undefined
|
|
readonly forceCodeSigning: boolean
|
|
readonly notarize: boolean
|
|
}
|
|
readonly dmg: {
|
|
readonly sign: boolean
|
|
readonly writeUpdateInfo: boolean
|
|
}
|
|
readonly artifactBuildCompleted: (artifact: { readonly file: string }) => Promise<void> | undefined
|
|
}
|
|
|
|
/**
|
|
* Create electron-builder configuration from one release environment.
|
|
* @param env - Packaging environment.
|
|
* @param hostPlatform - Build-host platform used when no explicit target is present.
|
|
* @returns electron-builder configuration.
|
|
*/
|
|
export function createElectronBuilderConfig(
|
|
env?: NodeJS.ProcessEnv,
|
|
hostPlatform?: NodeJS.Platform,
|
|
): DesktopElectronBuilderConfig
|
|
|
|
declare const electronBuilderConfig: DesktopElectronBuilderConfig
|
|
|
|
export default electronBuilderConfig
|