436a9631fc
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
49 lines
1.4 KiB
TypeScript
49 lines
1.4 KiB
TypeScript
import { DmgOptions, Target } from "app-builder-lib";
|
|
import { MacPackager } from "app-builder-lib/out/macPackager";
|
|
import { Arch } from "builder-util";
|
|
export interface DmgBuildConfig {
|
|
title: string;
|
|
icon?: string | null;
|
|
"badge-icon"?: string | null;
|
|
background?: string | null;
|
|
"background-color"?: string | null;
|
|
"icon-size"?: number | null;
|
|
"text-size"?: number | null;
|
|
window?: {
|
|
position?: {
|
|
x?: number;
|
|
y?: number;
|
|
};
|
|
size?: {
|
|
width?: number;
|
|
height?: number;
|
|
};
|
|
};
|
|
format?: string;
|
|
size?: string | null;
|
|
shrink?: boolean;
|
|
filesystem?: string;
|
|
"compression-level"?: number | null;
|
|
license?: string | null;
|
|
contents?: Array<{
|
|
path: string;
|
|
x: number;
|
|
y: number;
|
|
name?: string;
|
|
type?: "file" | "link" | "position";
|
|
hide_extension?: boolean;
|
|
hidden?: boolean;
|
|
}>;
|
|
}
|
|
export declare class DmgTarget extends Target {
|
|
private readonly packager;
|
|
readonly outDir: string;
|
|
readonly options: DmgOptions;
|
|
isAsyncSupported: boolean;
|
|
constructor(packager: MacPackager, outDir: string);
|
|
build(appPath: string, arch: Arch): Promise<void>;
|
|
private signDmg;
|
|
computeVolumeName(arch: Arch, custom?: string | null): string;
|
|
computeDmgOptions(appPath: string): Promise<DmgOptions>;
|
|
}
|