An AppImage maker for Electron Forge.

See Readme.md file distributed in subproject's root dir for more information and documentation of supported env variables. See JSDoc/TSDoc/TypeDoc documentation (this ones!) for supported configuration options.

Example

{
name: "@reforged/maker-appimage",
config: {
options: {
// Package name.
name: "example-app",
// Executable name.
bin: "app",
// Human-friendly name of the application.
productName: "Example Electron Application",
// `GenericName` in generated `.desktop` file.
genericName: "Example application",
// Path to application's icon.
icon: "/path/to/icon.png",
// Desktop file to be used instead of the configuration above.
desktopFile: "/path/to/example-app.desktop",
// Release of `AppImage/AppImageKit`, either number or "continuous".
AppImageKitRelease: "continuous",
// Support parsing Arch Linux '*_flags.conf' file.
flagsFile: "true"
}
}
}

Hierarchy (view full)

Constructors

  • Parameters

    • Optional configOrConfigFetcher: MakerAppImageConfig | ((arch) => MakerAppImageConfig)

      Either a configuration object for this maker or a simple method that returns such a configuration for a given target architecture

    • Optional platformsToMakeOn: string[]

      If you want this maker to run on platforms different from defaultPlatforms you can provide those platforms here

    Returns MakerAppImage

Properties

defaultPlatforms: ["linux"] = ...
isSupportedOnCurrentPlatform: (() => true) = ...

Type declaration

    • (): true
    • Returns true

name: "AppImage" = ...
platformsToMakeOn?: string[]
requiredExternalBinaries: ["mksquashfs"] = ...

Accessors

  • get platforms(): string[]
  • Returns string[]

Methods

  • Ensures the directory exists and is forced to be empty.

    I.e. If the directory already exists it is deleted and recreated, this is a destructive operation

    Parameters

    • dir: string

    Returns Promise<void>

  • Throws an error if any of the binaries don't exist.

    Returns void

  • Ensures the path to the file exists and the file does not exist

    I.e. If the file already exists it is deleted and the path created

    Parameters

    • file: string

    Returns Promise<void>

  • Checks if the specified binaries exist, which are required for the maker to be used.

    Returns boolean

  • Checks if the given module is installed, used for testing if optional dependencies are installed or not

    Parameters

    • module: string

    Returns boolean

  • Parameters

    • __namedParameters: MakerMeta
    • Rest ...vendorExt: unknown[]

    Returns Promise<[AppImagePath: string]>

  • Normalize the given semver-formatted version to a 4-part dot delimited version number without prerelease information for use in Windows apps.

    Parameters

    • version: string

    Returns string

  • Parameters

    • targetArch: string

    Returns Promise<void>