electron builder.Class.WinPackager
Electron-Builder / electron-builder / WinPackager
Extends¶
Constructors¶
new WinPackager()¶
new WinPackager(
info):WinPackager
Parameters¶
• info: Packager
Returns¶
Overrides¶
Properties¶
_iconPath¶
_iconPath:
Lazy<null|string>
appInfo¶
readonlyappInfo:AppInfo
Inherited from¶
info¶
readonlyinfo:Packager
Inherited from¶
platform¶
readonlyplatform:Platform
Inherited from¶
platformSpecificBuildOptions¶
readonlyplatformSpecificBuildOptions:WindowsConfiguration
Inherited from¶
PlatformPackager.platformSpecificBuildOptions
signingManager¶
readonlysigningManager:Lazy<SignManager>
vm¶
readonlyvm:Lazy<VmManager>
Accessors¶
buildResourcesDir¶
getbuildResourcesDir():string
Returns¶
string
Inherited from¶
PlatformPackager.buildResourcesDir
compression¶
getcompression():CompressionLevel
Returns¶
Inherited from¶
config¶
getconfig():Configuration
Returns¶
Inherited from¶
debugLogger¶
getdebugLogger():DebugLogger
Returns¶
Inherited from¶
defaultTarget¶
getdefaultTarget():string[]
Returns¶
string[]
Overrides¶
PlatformPackager.defaultTarget
fileAssociations¶
getfileAssociations():FileAssociation[]
Returns¶
Inherited from¶
PlatformPackager.fileAssociations
forceCodeSigning¶
getforceCodeSigning():boolean
Returns¶
boolean
Inherited from¶
PlatformPackager.forceCodeSigning
isForceCodeSigningVerification¶
getisForceCodeSigningVerification():boolean
Returns¶
boolean
packagerOptions¶
getpackagerOptions():PackagerOptions
Returns¶
Inherited from¶
PlatformPackager.packagerOptions
projectDir¶
getprojectDir():string
Returns¶
string
Inherited from¶
resourceList¶
getresourceList():Promise<string[]>
Returns¶
Promise<string[]>
Inherited from¶
Methods¶
addElectronFuses()¶
addElectronFuses(
context,fuses):Promise<number>
Use AfterPackContext here to keep available for public API
Parameters¶
• context: PackContext
• fuses: FuseConfig
Can be used in afterPack hook for custom fuse logic like below. It’s an alternative approach if one wants to override electron-builder’s @electron/fuses version
await context.packager.addElectronFuses(context, { ... })
Returns¶
Promise<number>
Inherited from¶
PlatformPackager.addElectronFuses
artifactPatternConfig()¶
artifactPatternConfig(
targetSpecificOptions,defaultPattern):object
Parameters¶
• targetSpecificOptions: TargetSpecificOptions | Nullish
• defaultPattern: undefined | string
Returns¶
object
isUserForced¶
isUserForced:
boolean
pattern¶
pattern:
string
Inherited from¶
PlatformPackager.artifactPatternConfig
computeAppOutDir()¶
protectedcomputeAppOutDir(outDir,arch):string
Parameters¶
• outDir: string
• arch: Arch
Returns¶
string
Inherited from¶
PlatformPackager.computeAppOutDir
computeSafeArtifactName()¶
computeSafeArtifactName(
suggestedName,ext,arch?,skipDefaultArch?,defaultArch?,safePattern?):null|string
Parameters¶
• suggestedName: null | string
• ext: string
• arch?: null | Arch
• skipDefaultArch?: boolean
• defaultArch?: string
• safePattern?: string
Returns¶
null | string
Inherited from¶
PlatformPackager.computeSafeArtifactName
createGetFileMatchersOptions()¶
createGetFileMatchersOptions(
outDir,arch,customBuildOptions):GetFileMatchersOptions
Parameters¶
• outDir: string
• arch: Arch
• customBuildOptions: PlatformSpecificBuildOptions
Returns¶
GetFileMatchersOptions
Inherited from¶
PlatformPackager.createGetFileMatchersOptions
createTargets()¶
createTargets(
targets,mapper):void
Parameters¶
• targets: string[]
• mapper
Returns¶
void
Overrides¶
PlatformPackager.createTargets
createTransformerForExtraFiles()¶
protectedcreateTransformerForExtraFiles(packContext):null|FileTransformer
Parameters¶
• packContext: PackContext
Returns¶
null | FileTransformer
Overrides¶
PlatformPackager.createTransformerForExtraFiles
doAddElectronFuses()¶
protecteddoAddElectronFuses(packContext):Promise<void>
Parameters¶
• packContext: PackContext
Returns¶
Promise<void>
Inherited from¶
PlatformPackager.doAddElectronFuses
doGetCscPassword()¶
doGetCscPassword():
string|Nullish
Returns¶
string | Nullish
Overrides¶
PlatformPackager.doGetCscPassword
doPack()¶
protecteddoPack(packOptions):Promise<void>
Parameters¶
• packOptions: DoPackOptions<WindowsConfiguration>
Returns¶
Promise<void>
Inherited from¶
doSignAfterPack()¶
protecteddoSignAfterPack(outDir,appOutDir,platformName,arch,platformSpecificBuildOptions,targets):Promise<void>
Parameters¶
• outDir: string
• appOutDir: string
• platformName: ElectronPlatformName
• arch: Arch
• platformSpecificBuildOptions: WindowsConfiguration
• targets: Target[]
Returns¶
Promise<void>
Inherited from¶
PlatformPackager.doSignAfterPack
expandArtifactBeautyNamePattern()¶
expandArtifactBeautyNamePattern(
targetSpecificOptions,ext,arch?):string
Parameters¶
• targetSpecificOptions: TargetSpecificOptions | Nullish
• ext: string
• arch?: null | Arch
Returns¶
string
Inherited from¶
PlatformPackager.expandArtifactBeautyNamePattern
expandArtifactNamePattern()¶
expandArtifactNamePattern(
targetSpecificOptions,ext,arch?,defaultPattern?,skipDefaultArch?,defaultArch?):string
Parameters¶
• targetSpecificOptions: TargetSpecificOptions | Nullish
• ext: string
• arch?: null | Arch
• defaultPattern?: string
• skipDefaultArch?: boolean
• defaultArch?: string
Returns¶
string
Inherited from¶
PlatformPackager.expandArtifactNamePattern
expandMacro()¶
expandMacro(
pattern,arch?,extra?,isProductNameSanitized?):string
Parameters¶
• pattern: string
• arch?: null | string
• extra?: any
• isProductNameSanitized?: boolean
Returns¶
string
Inherited from¶
generateName2()¶
generateName2(
ext,classifier,deployment):string
Parameters¶
• ext: null | string
• classifier: string | Nullish
• deployment: boolean
Returns¶
string
Inherited from¶
PlatformPackager.generateName2
getCscLink()¶
getCscLink(
extraEnvName?):string|Nullish
Parameters¶
• extraEnvName?: null | string
Returns¶
string | Nullish
Inherited from¶
getCscPassword()¶
getCscPassword():
string
Returns¶
string
Inherited from¶
PlatformPackager.getCscPassword
getDefaultFrameworkIcon()¶
getDefaultFrameworkIcon():
null|string
Returns¶
null | string
Inherited from¶
PlatformPackager.getDefaultFrameworkIcon
getElectronDestinationDir()¶
getElectronDestinationDir(
appOutDir):string
Parameters¶
• appOutDir: string
Returns¶
string
Inherited from¶
PlatformPackager.getElectronDestinationDir
getElectronSrcDir()¶
getElectronSrcDir(
dist):string
Parameters¶
• dist: string
Returns¶
string
Inherited from¶
PlatformPackager.getElectronSrcDir
getIconPath()¶
getIconPath():
Promise<null|string>
Returns¶
Promise<null | string>
Overrides¶
getMacOsElectronFrameworkResourcesDir()¶
getMacOsElectronFrameworkResourcesDir(
appOutDir):string
Parameters¶
• appOutDir: string
Returns¶
string
Inherited from¶
PlatformPackager.getMacOsElectronFrameworkResourcesDir
getMacOsResourcesDir()¶
getMacOsResourcesDir(
appOutDir):string
Parameters¶
• appOutDir: string
Returns¶
string
Inherited from¶
PlatformPackager.getMacOsResourcesDir
getOrConvertIcon()¶
protectedgetOrConvertIcon(format):Promise<null|string>
Parameters¶
• format: IconFormat
Returns¶
Promise<null | string>
Inherited from¶
PlatformPackager.getOrConvertIcon
getResource()¶
getResource(
custom, …names):Promise<null|string>
Parameters¶
• custom: string | Nullish
• …names: string[]
Returns¶
Promise<null | string>
Inherited from¶
getResourcesDir()¶
getResourcesDir(
appOutDir):string
Parameters¶
• appOutDir: string
Returns¶
string
Inherited from¶
PlatformPackager.getResourcesDir
getTempFile()¶
getTempFile(
suffix):Promise<string>
Parameters¶
• suffix: string
Returns¶
Promise<string>
Inherited from¶
pack()¶
pack(
outDir,arch,targets,taskManager):Promise<any>
Parameters¶
• outDir: string
• arch: Arch
• targets: Target[]
• taskManager: AsyncTaskManager
Returns¶
Promise<any>
Inherited from¶
packageInDistributableFormat()¶
protectedpackageInDistributableFormat(appOutDir,arch,targets,taskManager):void
Parameters¶
• appOutDir: string
• arch: Arch
• targets: Target[]
• taskManager: AsyncTaskManager
Returns¶
void
Inherited from¶
PlatformPackager.packageInDistributableFormat
prepareAppInfo()¶
protectedprepareAppInfo(appInfo):AppInfo
Parameters¶
• appInfo: AppInfo
Returns¶
Inherited from¶
PlatformPackager.prepareAppInfo
resolveIcon()¶
resolveIcon(
sources,fallbackSources,outputFormat):Promise<IconInfo[]>
Parameters¶
• sources: string[]
• fallbackSources: string[]
• outputFormat: IconFormat
Returns¶
Promise<IconInfo[]>
Inherited from¶
sign()¶
sign(
file):Promise<boolean>
Parameters¶
• file: string
Returns¶
Promise<boolean>
signAndEditResources()¶
signAndEditResources(
file,arch,outDir,internalName?,requestedExecutionLevel?):Promise<void>
Parameters¶
• file: string
• arch: Arch
• outDir: string
• internalName?: null | string
• requestedExecutionLevel?: null | RequestedExecutionLevel
Returns¶
Promise<void>
signApp()¶
protectedsignApp(packContext,isAsar):Promise<boolean>
Parameters¶
• packContext: PackContext
• isAsar: boolean
Returns¶
Promise<boolean>