Skip to main content

Class: LinuxPackager

Extends

Constructors

Constructor

new LinuxPackager(info): LinuxPackager

Parameters

info

Packager

Returns

LinuxPackager

Overrides

PlatformPackager.constructor

Properties

appInfo

readonly appInfo: AppInfo

Inherited from

PlatformPackager.appInfo


executableName

readonly executableName: string


info

readonly info: Packager

Inherited from

PlatformPackager.info


platform

readonly platform: Platform

Inherited from

PlatformPackager.platform


platformSpecificBuildOptions

readonly platformSpecificBuildOptions: LinuxConfiguration

Inherited from

PlatformPackager.platformSpecificBuildOptions

Accessors

buildResourcesDir

Get Signature

get buildResourcesDir(): string

Returns

string

Inherited from

PlatformPackager.buildResourcesDir


compression

Get Signature

get compression(): CompressionLevel

Returns

CompressionLevel

Inherited from

PlatformPackager.compression


config

Get Signature

get config(): Configuration

Returns

Configuration

Inherited from

PlatformPackager.config


debugLogger

Get Signature

get debugLogger(): DebugLogger

Returns

DebugLogger

Inherited from

PlatformPackager.debugLogger


defaultTarget

Get Signature

get defaultTarget(): string[]

Returns

string[]

Overrides

PlatformPackager.defaultTarget


fileAssociations

Get Signature

get fileAssociations(): FileAssociation[]

Returns

FileAssociation[]

Inherited from

PlatformPackager.fileAssociations


forceCodeSigning

Get Signature

get forceCodeSigning(): boolean

Returns

boolean

Inherited from

PlatformPackager.forceCodeSigning


packagerOptions

Get Signature

get packagerOptions(): PackagerOptions

Returns

PackagerOptions

Inherited from

PlatformPackager.packagerOptions


projectDir

Get Signature

get projectDir(): string

Returns

string

Inherited from

PlatformPackager.projectDir


resourceList

Get Signature

get resourceList(): Promise<string[]>

Returns

Promise<string[]>

Inherited from

PlatformPackager.resourceList

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

string | undefined

Returns

object

isUserForced

isUserForced: boolean

pattern

pattern: string

Inherited from

PlatformPackager.artifactPatternConfig


computeAppOutDir()

protected computeAppOutDir(outDir, arch): string

Parameters

outDir

string

arch

Arch

Returns

string

Inherited from

PlatformPackager.computeAppOutDir


computeSafeArtifactName()

computeSafeArtifactName(suggestedName, ext, arch?, skipDefaultArch?, defaultArch?, safePattern?): string | null

Parameters

suggestedName

string | null

ext

string

arch?

Arch | null

skipDefaultArch?

boolean

defaultArch?

string

safePattern?

string

Returns

string | null

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

(name, factory) => void

Returns

void

Overrides

PlatformPackager.createTargets


createTransformerForExtraFiles()

protected createTransformerForExtraFiles(packContext): FileTransformer | null

Parameters

packContext

PackContext

Returns

FileTransformer | null

Inherited from

PlatformPackager.createTransformerForExtraFiles


doAddElectronFuses()

protected doAddElectronFuses(packContext): Promise<void>

Parameters

packContext

PackContext

Returns

Promise<void>

Inherited from

PlatformPackager.doAddElectronFuses


doGetCscPassword()

doGetCscPassword(): string | Nullish

Returns

string | Nullish

Inherited from

PlatformPackager.doGetCscPassword


doPack()

protected doPack(packOptions): Promise<void>

Parameters

packOptions

DoPackOptions<LinuxConfiguration>

Returns

Promise<void>

Inherited from

PlatformPackager.doPack


doSignAfterPack()

protected doSignAfterPack(outDir, appOutDir, platformName, arch, platformSpecificBuildOptions, targets): Promise<void>

Parameters

outDir

string

appOutDir

string

platformName

ElectronPlatformName

arch

Arch

platformSpecificBuildOptions

LinuxConfiguration

targets

Target[]

Returns

Promise<void>

Inherited from

PlatformPackager.doSignAfterPack


expandArtifactBeautyNamePattern()

expandArtifactBeautyNamePattern(targetSpecificOptions, ext, arch?): string

Parameters

targetSpecificOptions

TargetSpecificOptions | Nullish

ext

string

arch?

Arch | null

Returns

string

Inherited from

PlatformPackager.expandArtifactBeautyNamePattern


expandArtifactNamePattern()

expandArtifactNamePattern(targetSpecificOptions, ext, arch?, defaultPattern?, skipDefaultArch?, defaultArch?): string

Parameters

targetSpecificOptions

TargetSpecificOptions | Nullish

ext

string

arch?

Arch | null

defaultPattern?

string

skipDefaultArch?

boolean

defaultArch?

string

Returns

string

Inherited from

PlatformPackager.expandArtifactNamePattern


expandMacro()

expandMacro(pattern, arch?, extra?, isProductNameSanitized?): string

Parameters

pattern

string

arch?

string | null

extra?

any

isProductNameSanitized?

boolean

Returns

string

Inherited from

PlatformPackager.expandMacro


generateAssetCatalogData()

protected generateAssetCatalogData(iconPath): Promise<AssetCatalogResult>

Parameters

iconPath

string

Returns

Promise<AssetCatalogResult>

Inherited from

PlatformPackager.generateAssetCatalogData


generateIcnsFromIcon()

generateIcnsFromIcon(iconPath): Promise<string>

Parameters

iconPath

string

Returns

Promise<string>

Inherited from

PlatformPackager.generateIcnsFromIcon


generateName2()

generateName2(ext, classifier, deployment): string

Parameters

ext

string | null

classifier

string | Nullish

deployment

boolean

Returns

string

Inherited from

PlatformPackager.generateName2


getCscLink(extraEnvName?): string | Nullish

Parameters

extraEnvName?

string | null

Returns

string | Nullish

Inherited from

PlatformPackager.getCscLink


getCscPassword()

getCscPassword(): string

Returns

string

Inherited from

PlatformPackager.getCscPassword


getDefaultFrameworkIcon()

getDefaultFrameworkIcon(): string | null

Returns

string | null

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<string | null>

Returns

Promise<string | null>

Inherited from

PlatformPackager.getIconPath


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()

protected getOrConvertIcon(format): Promise<string | null>

Parameters

format

IconFormat

Returns

Promise<string | null>

Inherited from

PlatformPackager.getOrConvertIcon


getResource()

getResource(custom, ...names): Promise<string | null>

Parameters

custom

string | Nullish

names

...string[]

Returns

Promise<string | null>

Inherited from

PlatformPackager.getResource


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

PlatformPackager.getTempFile


pack()

pack(outDir, arch, targets, taskManager): Promise<any>

Parameters

outDir

string

arch

Arch

targets

Target[]

taskManager

AsyncTaskManager

Returns

Promise<any>

Inherited from

PlatformPackager.pack


packageInDistributableFormat()

protected packageInDistributableFormat(appOutDir, arch, targets, taskManager): void

Parameters

appOutDir

string

arch

Arch

targets

Target[]

taskManager

AsyncTaskManager

Returns

void

Inherited from

PlatformPackager.packageInDistributableFormat


prepareAppInfo()

protected prepareAppInfo(appInfo): AppInfo

Parameters

appInfo

AppInfo

Returns

AppInfo

Inherited from

PlatformPackager.prepareAppInfo


resolveIcon()

resolveIcon(sources, fallbackSources, outputFormat): Promise<IconInfo[]>

Parameters

sources

string[]

fallbackSources

string[]

outputFormat

IconFormat

Returns

Promise<IconInfo[]>

Inherited from

PlatformPackager.resolveIcon


signApp()

protected signApp(packContext, isAsar): Promise<boolean>

Parameters

packContext

PackContext

isAsar

boolean

Returns

Promise<boolean>

Inherited from

PlatformPackager.signApp