electron builder.Interface.FileAssociation
Electron-Builder / electron-builder / FileAssociation
File associations.
macOS (corresponds to CFBundleDocumentTypes), NSIS, and MSI only.
On Windows (NSIS) works only if nsis.perMachine is set to true.
Properties¶
description?¶
readonlyoptionaldescription:null|string
windows-only. The description.
ext¶
readonlyext:string|string[]
The extension (minus the leading period). e.g. png.
icon?¶
readonlyoptionalicon:null|string
The path to icon (.icns for MacOS and .ico for Windows), relative to build (build resources directory). Defaults to ${firstExt}.icns/${firstExt}.ico (if several extensions specified, first is used) or to application icon.
Not supported on Linux, file issue if need (default icon will be x-office-document). Not supported on MSI.
isPackage?¶
readonlyoptionalisPackage:boolean
macOS-only Whether the document is distributed as a bundle. If set to true, the bundle directory is treated as a file. Corresponds to LSTypeIsPackage.
mimeType?¶
readonlyoptionalmimeType:null|string
linux-only. The mime-type.
name?¶
readonlyoptionalname:null|string
The name. e.g. PNG. Defaults to ext.
rank?¶
readonlyoptionalrank:string
macOS-only The app’s rank with respect to the type. The value can be Owner, Default, Alternate, or None. Corresponds to LSHandlerRank.
Default¶
Default
role?¶
readonlyoptionalrole:string
macOS-only The app’s role with respect to the type. The value can be Editor, Viewer, Shell, or None. Corresponds to CFBundleTypeRole.
Default¶
Editor