mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-11 04:00:38 +00:00
50 lines
1.8 KiB
TypeScript
50 lines
1.8 KiB
TypeScript
import type { DesktopAutoUpdateTarget } from './desktop-auto-update-environment.mjs'
|
|
|
|
/** Mutable target directories plus the shared immutable download cache. */
|
|
export interface DesktopTargetBuildPaths {
|
|
readonly root: string
|
|
readonly artifacts: string
|
|
readonly runtime: string
|
|
readonly packageSet: string
|
|
readonly seed: string
|
|
readonly seedPnpm: string
|
|
readonly nodeExtract: string
|
|
readonly packedDsh: string
|
|
readonly packedVendor: string
|
|
readonly packedLandlock: string
|
|
readonly downloads: string
|
|
}
|
|
|
|
/**
|
|
* Resolve the fixed build target selected by a packaging environment.
|
|
* @param env - Packaging environment.
|
|
* @param hostPlatform - Build-host platform used when no target override exists.
|
|
* @param hostArch - Build-host architecture used when no target override exists.
|
|
* @returns Supported Desktop target name.
|
|
*/
|
|
export function resolveDesktopBuildTarget(
|
|
env?: NodeJS.ProcessEnv,
|
|
hostPlatform?: NodeJS.Platform,
|
|
hostArch?: string,
|
|
): DesktopAutoUpdateTarget
|
|
|
|
/**
|
|
* Return the mutable preparation and artifact directories owned by one release target.
|
|
* @param target - Supported Desktop target name.
|
|
* @returns Target paths plus the shared immutable download cache.
|
|
*/
|
|
export function desktopTargetBuildPaths(target: DesktopAutoUpdateTarget): DesktopTargetBuildPaths
|
|
|
|
/**
|
|
* Resolve the paths owned by the target selected in a packaging environment.
|
|
* @param env - Packaging environment.
|
|
* @param hostPlatform - Build-host platform used when no target override exists.
|
|
* @param hostArch - Build-host architecture used when no target override exists.
|
|
* @returns Selected target paths.
|
|
*/
|
|
export function resolveDesktopTargetBuildPaths(
|
|
env?: NodeJS.ProcessEnv,
|
|
hostPlatform?: NodeJS.Platform,
|
|
hostArch?: string,
|
|
): DesktopTargetBuildPaths
|