npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

electron-forge-make-nsis

v1.0.0

Published

An `electron-forge` maker for NSIS that supports `electron-forge` v6 and can be used as a replacement for `electron-builder`. Supports code-signing and basic updates with `electron-updater`.

Readme

@electron-forge/maker-nsis

An electron-forge maker for NSIS that supports electron-forge v6 and can be used as a replacement for electron-builder. Supports code-signing and basic updates with electron-updater.

Features

  • Creates Windows installers using NSIS (Nullsoft Scriptable Install System)
  • Supports code-signing for Windows applications
  • Compatible with electron-forge v6
  • Supports basic updates with electron-updater
  • Cross-architecture support (x64, ia32, arm64)

Installation

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

Configuration

To use this maker, add it to your electron-forge configuration in package.json:

{
  "config": {
    "forge": {
      "packagerConfig": {},
      "makers": [
        {
          "name": "@electron-forge/maker-nsis",
          "config": {
            // Optional: Code signing configuration
            "codesign": {
              "certificateFile": "./path/to/certificate.p12",
              "certificatePassword": "your-certificate-password",
              "signingHashAlgorithms": ["sha256"],
              "timestampServer": "http://timestamp.digicert.com"
            },
            // Optional: Auto-updater configuration
            "updater": {
              "url": "https://your-update-server.com",
              "channel": "latest",
              "publisherName": ["Your Company Name"]
            },
            // Optional: Additional app-builder-lib configuration
            "getAppBuilderConfig": async () => {
              return {
                // Additional app-builder-lib configuration
                "productName": "My App",
                "artifactName": "${productName}-Setup-${version}.${ext}",
                "compression": "maximum",
                "oneClick": false,
                "allowToChangeInstallationDirectory": true
              };
            }
          }
        }
      ]
    }
  }
}

Configuration Options

Code Signing Options

  • codesign: Configuration object for Windows code signing
    • certificateFile: Path to the signing certificate file
    • certificatePassword: Password for the certificate file
    • signingHashAlgorithms: Array of hash algorithms to use for signing (e.g., ["sha256"])
    • timestampServer: URL for the timestamp server

Auto-updater Options

  • updater: Configuration object for electron-updater compatibility
    • url: Base URL for update files
    • channel: Update channel (default: "latest")
    • publisherName: Array of publisher names for the app-update.yml file
    • updaterCacheDirName: Optional cache directory name for updates

Advanced Configuration

  • getAppBuilderConfig: Async function that returns additional configuration for app-builder-lib

Usage

Once configured, you can build your installer with:

npm run make

This will generate a Windows NSIS installer in the out/make directory.

Code Signing

To properly sign your Windows application:

  1. Obtain a valid code signing certificate from a trusted Certificate Authority
  2. Configure the codesign option with the path to your certificate file and its password
  3. Run the make command - your application will be automatically signed during the build process

Auto-updater Support

This maker includes built-in support for electron-updater:

  1. Configure the updater option with your update server URL
  2. Include electron-updater in your application dependencies
  3. Publish your updates to the specified URL
  4. The installer will include an app-update.yml file that electron-updater will use

Development

To build the maker from source:

npm run build

To lint the source code:

npm run lint

Requirements

  • Node.js >= 20.0.0
  • Windows platform for building (for code signing and NSIS compilation)

License

MIT License - see the LICENSE file for details.