electron Packaging an electron app

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Introduction

When ready for distribution, your electron app can be packaged into an executable file.

Electron applications can be packaged to run on Windows (32/64 bit), OSX (macOS) and Linux (x86/x86_64).

To package your code, use the npm package 'electron-packager\

https://github.com/electron-userland/electron-packager

Syntax

  • $ electron-packager
  • sourcedir
  • appname
  • --platform=platform
  • --arch=arch
  • [optional flags...]

Parameters

ParameterDetails
sourcedirThe directory of your electron application files
appnameThe name of your application
platformThe platform you want to compile your code for. Omitting this will compile for the host OS
archThe system architecture you want to compile your code for. Omitting this will compile for the host arch


Got any electron Question?