githubEdit

MSIX

Create a MSIX package that can be shipped as a direct download or to the Microsoft Store for your Electron app, using Electron Forge.

circle-info

MSIX support was added in Electron Forge v7.10 and is currently experimental. Breaking changes to the configuration may be introduced between releases.

The MSIXarrow-up-right target builds .msix packages, which can be directly distributed to end user or to the Microsoft Storearrow-up-right.

Requirements

You can only build the MSIX target on Windows 10 or 11 machines with the Windows SDKarrow-up-right installed. Check the electron-windows-msix docsarrow-up-right for more information on platform requirements.

Installation

npm install --save-dev @electron-forge/maker-msix

Usage

To use @electron-forge/maker-msix, add it to the makers array in your Forge configuration:

forge.config.js
module.exports = {
  makers: [
    {
      name: '@electron-forge/maker-msix',
      config: {
        manifestVariables: {
          publisher: 'Electron Dev'
        },
        windowsSignOptions: {
          certificateFile: 'C:\\devcert.pfx',
          certificatePassword: '122345'
        }
      }
    }
  ]
};

Configuration options are documented in MakerMSIXConfigarrow-up-right.

For advanced code-signing use-cases, this maker utilizes @electron/windows-sign via the windowsSignOptions property. see the windows-signarrow-up-right README for more details.

Debugging

For advanced debug logging for this maker, add the DEBUG=electron-windows-msix* environment variable or set the logLevel to debug in the maker config.

Last updated

Was this helpful?