electron-shadcn

Building

How to build and package your electron-shadcn application for distribution

GitHubEdit on GitHub

electron-shadcn uses Electron Forge for building, packaging, and distributing your application. This guide covers the different build options available.

Build Commands

There are three main commands for building your application, each serving a different purpose:

CommandDescriptionOutput
npm run packageCreates an executable bundleout/ folder
npm run makeCreates platform-specific distributables.exe, .dmg, .deb, etc.
npm run publishCreates and publishes to GitHub ReleasesGitHub Release

Packaging

The package command bundles your application into a platform-specific executable without creating an installer.

npm run package

This is useful for:

  • Quick testing of the production build
  • Running end-to-end tests with Playwright
  • Development verification before creating distributables

The output will be in the out/ directory.

Creating Distributables

The make command generates platform-specific installers and distributables.

npm run make

Generates:

  • .exe installer (Squirrel.Windows)
  • Portable executable

The installer includes automatic updates support and creates Start Menu shortcuts.

Generates:

  • .dmg disk image
  • .zip archive

To sign your macOS app for distribution, you'll need an Apple Developer certificate. Without signing, users will see security warnings when opening the app.

Generates:

  • .deb package (Debian/Ubuntu)
  • .rpm package (Fedora/RHEL)

These packages can be installed using the system package manager.

On this page