Class: LinuxPackager
Extends
Constructors
Constructor
new LinuxPackager(
info):LinuxPackager
Parameters
info
Returns
LinuxPackager
Overrides
Properties
appInfo
readonlyappInfo:AppInfo
Inherited from
executableName
readonlyexecutableName:string
info
protectedreadonlyinfo:Packager
Inherited from
platform
readonlyplatform:Platform
Inherited from
platformSpecificBuildOptions
protectedreadonlyplatformSpecificBuildOptions:LinuxConfiguration
Inherited from
PlatformPackager.platformSpecificBuildOptions
Accessors
appDir
Get Signature
get appDir():
string
Returns
string
Inherited from
areNodeModulesHandledExternally
Get Signature
get areNodeModulesHandledExternally():
boolean
Returns
boolean
Inherited from
PlatformPackager.areNodeModulesHandledExternally
buildResourcesDir
Get Signature
get buildResourcesDir():
string
Returns
string
Inherited from
PlatformPackager.buildResourcesDir
cancellationToken
Get Signature
get cancellationToken():
CancellationToken
Returns
Inherited from
PlatformPackager.cancellationToken
compression
Get Signature
get compression():
CompressionLevel
Returns
Inherited from
config
Get Signature
get config():
Configuration
Returns
Inherited from
debugLogger
Get Signature
get debugLogger():
DebugLogger
Returns
Inherited from
defaultTarget
Get Signature
get defaultTarget():
string[]
Returns
string[]
Overrides
PlatformPackager.defaultTarget
fileAssociations
Get Signature
get fileAssociations():
FileAssociation[]
Returns
Inherited from
PlatformPackager.fileAssociations
forceCodeSigning
Get Signature
get forceCodeSigning():
boolean
Returns
boolean
Inherited from
PlatformPackager.forceCodeSigning
framework
Get Signature
get framework():
Framework
Returns
Inherited from
isPrepackedAppAsar
Get Signature
get isPrepackedAppAsar():
boolean
Returns
boolean
Inherited from
PlatformPackager.isPrepackedAppAsar
metadata
Get Signature
get metadata():
Metadata
Returns
Inherited from
nodePackageName
Get Signature
get nodePackageName():
string
Returns
string
Inherited from
PlatformPackager.nodePackageName
originalMetadata
Get Signature
get originalMetadata():
Metadata
Returns
Inherited from
PlatformPackager.originalMetadata
packagerOptions
Get Signature
get packagerOptions():
PackagerOptions
Returns
Inherited from
PlatformPackager.packagerOptions
platformOptions
Get Signature
get platformOptions():
DC
Platform-level build options (e.g. config.mac, config.win, config.linux).
Returns
DC
Inherited from
PlatformPackager.platformOptions
projectDir
Get Signature
get projectDir():
string
Returns
string
Inherited from
relativeBuildResourcesDirname
Get Signature
get relativeBuildResourcesDirname():
string
Returns
string
Inherited from
PlatformPackager.relativeBuildResourcesDirname
repositoryInfo
Get Signature
get repositoryInfo():
Promise<SourceRepositoryInfo|null>
Returns
Promise<SourceRepositoryInfo | null>
Inherited from
PlatformPackager.repositoryInfo
resourceList
Get Signature
get resourceList():
Promise<string[]>
Returns
Promise<string[]>
Inherited from
stageDirPathCustomizer
Get Signature
get stageDirPathCustomizer(): (
target,packager,arch) =>string
Returns
(target, packager, arch) => string
Inherited from
PlatformPackager.stageDirPathCustomizer
tempDirManager
Get Signature
get tempDirManager():
TmpDir
Returns
Inherited from
PlatformPackager.tempDirManager
Methods
addBuildFinalizeTask()
addBuildFinalizeTask(
task):void
Parameters
task
() => Promise<void>
Returns
void
Inherited from
PlatformPackager.addBuildFinalizeTask
addElectronFuses()
addElectronFuses(
context,fuses):Promise<number>
Use AfterPackContext here to keep available for public API
Parameters
context
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()
protectedcomputeAppOutDir(outDir,arch):string
Parameters
outDir
string
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
customBuildOptions
Returns
GetFileMatchersOptions
Inherited from
PlatformPackager.createGetFileMatchersOptions
createTargets()
createTargets(
targets,mapper):void
Parameters
targets
string[]
mapper
(name, factory) => void
Returns
void
Overrides
PlatformPackager.createTargets
createTransformerForExtraFiles()
protectedcreateTransformerForExtraFiles(packContext):FileTransformer|null
Parameters
packContext
Returns
FileTransformer | null
Inherited from
PlatformPackager.createTransformerForExtraFiles
doAddElectronFuses()
protecteddoAddElectronFuses(packContext):Promise<void>
Parameters
packContext
Returns
Promise<void>
Inherited from
PlatformPackager.doAddElectronFuses
doGetCscPassword()
doGetCscPassword():
string|Nullish
Returns
string | Nullish
Inherited from
PlatformPackager.doGetCscPassword
doPack()
protecteddoPack(packOptions):Promise<void>
Parameters
packOptions
DoPackOptions<LinuxConfiguration>
Returns
Promise<void>
Inherited from
doSignAfterPack()
protecteddoSignAfterPack(outDir,appOutDir,platformName,platformType,arch,platformSpecificBuildOptions,targets):Promise<void>
Parameters
outDir
string
appOutDir
string
platformName
platformType
PlatformType | undefined
arch
platformSpecificBuildOptions
targets
Target[]
Returns
Promise<void>
Inherited from
PlatformPackager.doSignAfterPack
emitAppxManifestCreated()
emitAppxManifestCreated(
path):Promise<void>
Parameters
path
string
Returns
Promise<void>
Inherited from
PlatformPackager.emitAppxManifestCreated
emitArtifactBuildCompleted()
emitArtifactBuildCompleted(
event):Promise<void>
Parameters
event
Returns
Promise<void>
Inherited from
PlatformPackager.emitArtifactBuildCompleted
emitArtifactBuildStarted()
emitArtifactBuildStarted(
event,logFields?):Promise<void>
Parameters
event
logFields?
any
Returns
Promise<void>
Inherited from
PlatformPackager.emitArtifactBuildStarted
emitArtifactCreated()
emitArtifactCreated(
event):Promise<void>
Parameters
event
Returns
Promise<void>
Inherited from
PlatformPackager.emitArtifactCreated
emitMsiProjectCreated()
emitMsiProjectCreated(
path):Promise<void>
Parameters
path
string
Returns
Promise<void>
Inherited from
PlatformPackager.emitMsiProjectCreated
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
generateAssetCatalogData()
protectedgenerateAssetCatalogData(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()
getCscLink(
extraEnvName?):string|Nullish
Parameters
extraEnvName?
string | null
Returns
string | Nullish
Inherited from
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
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
getOptionsForTarget()
getOptionsForTarget<
T>(key):T
Merge platform-level options with target-specific config under key.
Replaces the manual deepAssign({}, packager.platformSpecificBuildOptions, config.X) pattern.
Type Parameters
T
T
Parameters
key
string
Returns
T
Inherited from
PlatformPackager.getOptionsForTarget
getOrConvertIcon()
protectedgetOrConvertIcon(format):Promise<string|null>
Parameters
format
IconFormat
Returns
Promise<string | null>
Inherited from
PlatformPackager.getOrConvertIcon
getPackageManager()
getPackageManager():
Promise<PM>
Returns
Promise<PM>
Inherited from
PlatformPackager.getPackageManager
getResource()
getResource(
custom, ...names):Promise<string|null>
Parameters
custom
string | Nullish
names
...string[]
Returns
Promise<string | null>
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
getWorkspaceRoot()
getWorkspaceRoot():
Promise<string>
Returns
Promise<string>
Inherited from
PlatformPackager.getWorkspaceRoot
pack()
pack(
outDir,arch,targets,taskManager):Promise<any>
Parameters
outDir
string
arch
targets
Target[]
taskManager
Returns
Promise<any>
Inherited from
packageInDistributableFormat()
protectedpackageInDistributableFormat(appOutDir,arch,targets,taskManager):void
Parameters
appOutDir
string
arch
targets
Target[]
taskManager
Returns
void
Inherited from
PlatformPackager.packageInDistributableFormat
prepareAppInfo()
protectedprepareAppInfo(appInfo):AppInfo
Parameters
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
signApp()
protectedsignApp(packContext,isAsar,_platformType?):Promise<boolean>
Parameters
packContext
isAsar
boolean
_platformType?
PlatformType
Returns
Promise<boolean>