Skip to content

Generating an executable for my Electron Node-Red Application #14

Description

@cdriouech

Hello,

My goal is to generate an executable for my Electron Node-red Application, I am able to run the application locally using "npm install && npm start" only, please find below the steps that I used :

# Clone this repository

git clone https://github.com/natcl/electron-node-red.git
# Go into the repository
cd electron-node-red

#merged my flows and package file

./merger.js {used my path to my Node-RED project directory}

**then I tried to run it locally with success with commands yarn:

yarn
yarn start
In order to build an executable I used electron packager that I installed:

electron-packager . Node-RED --icon=nodered.icns --platform=linux --arch=x64 --out=build --overwrite
Packaging app for platform linux x64 using electron v10.1.7
Wrote new app to build/Node-RED-linux-x64

yarn && yarn dist -l
#failed error:
⨯ /home/engr/electron-node-red/node_modules/app-builder-bin/linux/x64/app-builder exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE stackTrace=
AND
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command

I was hoping if you can please help me on this.

Thanks in advance !

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions