mirror of
https://github.com/dohooo/helmor.git
synced 2026-09-22 16:40:02 +08:00
e4ab522f35
* Add build platform boundary * docs: Dosu updates for PR #742 --------- Co-authored-by: dosubot[bot] <131922026+dosubot[bot]@users.noreply.github.com>
37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
export type TargetEnv = Record<string, string | undefined>;
|
|
|
|
export type ReleaseTarget = {
|
|
os: "macos";
|
|
arch: "arm64" | "x64";
|
|
targetTriple: "aarch64-apple-darwin" | "x86_64-apple-darwin";
|
|
tauriArgs: string;
|
|
updaterPlatformKey: "darwin-aarch64" | "darwin-x86_64";
|
|
};
|
|
|
|
export type BundleProfile = "debug" | "release";
|
|
|
|
export type BundleArtifactPlan = {
|
|
targetTriple: string;
|
|
profile: BundleProfile;
|
|
sidecarSource: string;
|
|
sidecarExternalBin: string;
|
|
cliSource: string;
|
|
cliExternalBin: string;
|
|
};
|
|
|
|
export const TARGET_TRIPLE_ENV_KEYS: readonly string[];
|
|
export const MACOS_RELEASE_TARGETS: readonly ReleaseTarget[];
|
|
export function targetTripleFromEnv(env?: TargetEnv): string | undefined;
|
|
export function resolveTargetTriple(options?: {
|
|
env?: TargetEnv;
|
|
hostTriple?: string;
|
|
readHostTriple?: () => string;
|
|
}): string;
|
|
export function cliBinaryNameForPlatform(platform?: NodeJS.Platform): string;
|
|
export function resolveBundleArtifacts(options: {
|
|
repoRoot: string;
|
|
targetTriple: string;
|
|
profile?: BundleProfile;
|
|
platform?: NodeJS.Platform;
|
|
}): BundleArtifactPlan;
|