Skip to content

Instantly share code, notes, and snippets.

@nolvuscodes
Last active March 19, 2020 16:05
Show Gist options
  • Save nolvuscodes/99a69639b7be0cc971d7aa06ec63ab95 to your computer and use it in GitHub Desktop.
Save nolvuscodes/99a69639b7be0cc971d7aa06ec63ab95 to your computer and use it in GitHub Desktop.

How to Create an Electron Installation Packer

To-Do First

Please dont forget to add this once you are done with your project and you want to start packing up for deployment. Follow the steps below to get started:

# For use in npm scripts (recommended)
npm install electron-packager --save-dev

# For use from the CLI
npm install electron-packager -g

Once you are done installing, go ahead then and edit a couple of things from the code below:

electron-packager . WestgateXL --overwrite --asar=true --platform=win32 --arch=ia32 --icon=assets/icons/win/icon.ico --prune=true --out=release-builds --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName="WestgateXL"

Lastly, once you are done, go ahead and copy and paste this into your CLI to start creating your packager, then your done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment