import { IApp } from "./toDesktop"; import { Configuration, PackagerOptions, PublishOptions } from "@adam-lynch/app-builder-lib"; declare type appBuilderLib = PackagerOptions & PublishOptions; export interface IAppBuilderLib extends appBuilderLib { config: Configuration; } export interface ExtraFileReference { from: FilePath; to?: FilePath; } export declare type ISODate = string; export declare enum PlatformName { linux = "linux", mac = "mac", windows = "windows" } export declare type FilePath = string; export declare type SemanticVersion = string; export declare type URL = string; export declare enum PackageManager { npm = "npm", yarn = "yarn" } export declare enum BuildSummaryType { date = "date", text = "text" } export interface BuildSummaryItem { label: string; value: string; type: BuildSummaryType; } export declare enum BuildStatus { queued = "queued", failed = "failed", building = "building", succeeded = "succeeded" } export declare type Arch = "ia32" | "x64"; export declare type LinuxArtifactName = "appImage" | "deb" | "rpm" | "snap"; export declare type MacArtifactName = "dmg" | "zip"; export declare type WindowsArtifactName = "msi" | "nsis" | "appx"; declare type ArtifactDownload = Record | null; export declare type LinuxArtifactDownloads = Record; export declare type MacArtifactDownloads = Record; export declare type WindowsArtifactDownloads = Record; export declare type CodeSignSkipReason = "no-cert" | "user-disabled"; export interface PlatformBuild { appBuilderLibConfig?: IAppBuilderLib; artifactDownloads?: LinuxArtifactDownloads | MacArtifactDownloads | WindowsArtifactDownloads; codeSignSkipReason?: CodeSignSkipReason; desktopifyVersion?: SemanticVersion; didCodeSign: boolean; downloadUrl?: URL; electronVersionUsed?: SemanticVersion; endedAt: ISODate; errorMessage?: string; numberOfAttemptedBuilds: number; platform: PlatformName; progressActivityName: string; progressActivityType: string; progressPercentage: number; screenshotUrl?: URL; shouldSkip: boolean; standardDownloadUrl?: URL; startedAt: ISODate; status: BuildStatus; } export interface Build { appCustomDomain?: string; appName: string; appNotarizaionBundleId: string; appVersion?: SemanticVersion; cliConfigSchemaVersion: number; continuousIntegrationServiceName?: string; commitId?: string; commitMessage?: string; createdAt: ISODate; desktopifyVersion?: SemanticVersion; endedAt?: ISODate; electronVersionSpecified?: SemanticVersion; electronVersionUsed?: SemanticVersion; errorMessage?: string; icon?: string; id: string; linux?: PlatformBuild; mac?: PlatformBuild; releasedAt?: ISODate; shouldCodeSign: boolean; shouldRelease: boolean; summary: BuildSummaryItem[]; sourcePackageManager?: PackageManager; standardUniversalDownloadUrl?: URL; startedAt: ISODate; status: BuildStatus; universalDownloadUrl?: URL; url?: URL; versionControlInfo?: { branchName: string; commitDate: string; commitId: string; commitMessage: string; hasUncommittedChanges: boolean; repositoryRemoteUrl: string; versionControlSystemName: string; }; windows?: PlatformBuild; } export interface BuildArtifacts { appBuilderLibConfig: IAppBuilderLib; appVersion: Build["appVersion"]; desktopifyVersion: Build["desktopifyVersion"]; electronVersionSpecified: Build["electronVersionSpecified"]; electronVersionUsed: Build["electronVersionUsed"]; localArtifacts: any; onlineArtifacts: any; sourcePackageManager: PackageManager; updatedConfig: IApp; updatedVersions: { desktopify?: string; electron?: string; version?: string; }; wasSkippedBecausePlatformIsNotSupported: boolean; } export declare type ComputedBuildProperties = Pick; export declare enum ManifestCategory { primary = "primary", buildStamped = "build-stamped", versioned = "versioned" } export interface CustomManifestArtifactDetails { path: FilePath; url: URL; } export interface CustomManifest { artifacts: { [propertyName: string]: Record | null; }; createdAt: ISODate; version: SemanticVersion; } export interface LinuxCustomManifest extends CustomManifest { artifacts: Record | null>; } export interface MacCustomManifest extends CustomManifest { artifacts: Record | null>; } export interface WindowsCustomManifest extends CustomManifest { artifacts: Record | null>; } export {};