UNPKG

@jasonscheirer/electron-forge-maker-msix

Version:

An `electron-forge` maker for MSIX that supports `electron-forge` v6 and can be used as a replacement for `electron-builder`. Supports code-signing.

46 lines (45 loc) 1.54 kB
import type { SignOptions } from '@electron/windows-sign'; import type { MacOSProtocol } from '@electron/packager/dist/types'; export type MSIXCodesignOptions = Omit<SignOptions, 'appDirectory' | 'hashes'>; export type CopilotKeyAction = 'tap' | 'start' | 'stop'; export type CopilotKeyURIAndWParam = { url: string; wparam?: number; }; export type CopilotKeyConfiguration = Record<CopilotKeyAction, CopilotKeyURIAndWParam>; export type AppCapability = 'GraphicsCapture' | 'Microphone' | 'Webcam'; export type MakerMSIXConfig = { appIcon: string; publisher?: string; internalAppID?: string; appDescription?: string; wallpaperIcon?: string; makeAppXPath?: string; makePriPath?: string; sigCheckPath?: string; codesign?: MSIXCodesignOptions; baseDownloadURL?: string; copilotKey?: CopilotKeyConfiguration; appCapabilities?: AppCapability[]; allowRollbacks?: boolean; runAtStartup?: boolean; startupParams?: string; }; export type MSIXAppManifestMetadata = { appID: string; appName: string; appDescription: string; publisher: string; version: string; executable: string; architecture: string; appInstallerFilename: string; msixFilename: string; protocols: MacOSProtocol[] | undefined; baseDownloadURL: string | undefined; copilotKey: CopilotKeyConfiguration | undefined; appCapabilities: AppCapability[] | undefined; allowRollbacks: boolean | undefined; runAtStartup: boolean; startupParams: string | undefined; };