Load target-owned Windows and macOS release settings, validate them before preparation, and provide a configuration-only check command. Share the local settings with upload, installer tests, and manual macOS signature checks. Exercise English and Chinese installer fixtures using visible UI labels and cover registered installation paths with trailing separators.
28 lines
1.1 KiB
TypeScript
28 lines
1.1 KiB
TypeScript
/** Load platform-local release settings without changing the caller's process environment. */
|
|
|
|
/**
|
|
* Read the target's required UTF-8 dotenv file; release settings never fall back to ambient values.
|
|
* @param platform Target platform.
|
|
* @param environment Parent environment, retained only for unrelated build tools.
|
|
* @param appRoot Desktop application directory; relative credential paths resolve here.
|
|
* @returns Isolated environment with file-owned release settings.
|
|
*/
|
|
export function loadDesktopPackageEnvironment(
|
|
platform: 'win32' | 'darwin',
|
|
environment?: NodeJS.ProcessEnv,
|
|
appRoot?: string,
|
|
): NodeJS.ProcessEnv
|
|
|
|
/**
|
|
* Validate release configuration before preparation without invoking a token or Apple's services.
|
|
* @param environment File-owned release settings.
|
|
* @param target Selected release target.
|
|
* @param options Explicit packaging mode.
|
|
* @returns Nothing.
|
|
*/
|
|
export function validateDesktopPackageEnvironment(
|
|
environment: NodeJS.ProcessEnv,
|
|
target: { platform: 'win32' | 'darwin', arch: string },
|
|
options?: { unsigned?: boolean, prepareOnly?: boolean },
|
|
): void
|