question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

electron-builder example for linux

See original GitHub issue

I am trying to configure the electron-builder for Linux, but I get a error. For windows it is working. This is my package.json:

{
  "name": "cic-nt",
  "productName": "CICone NT",
  "displayName": "CICone NT",
  "version": "0.25.3-develop-build.0",
  "description": "This is the base project for the CIC.Bas.Web project also called CIC One - New Technologies",
  "author": "C.I.C Software GmbH",
  "main": "main.electron.js",
  "copyright": "CICone NT © ${author} 2018",
  "build": {
    "appId": "electron-builder.%npm_package_name%",
    "directories": {
      "output": "../electron-build"
    },
    "win": {
      "asar": false,
      "icon": "../src/assets/icon/nt-white.ico",
      "publish": [
        {
          "provider": "generic",
          "url": "https://se-dnexec.cic-software.de/ElectronUpdate/${os}/${channel}"
        }
      ]
    },
    "linux": {
      "icon": "../src/assets/icon/nt-white.ico",
      "target": [
        "deb"
      ],
      "publish": [
        {
          "provider": "generic",
          "url": "https://se-dnexec.cic-software.de/ElectronUpdate/${os}/${channel}"
        }
      ]
    }
  },
  "dependencies": {
    "electron-updater": "^2.21.8"
  }
}

And this is how I run it:

    "package:electron:linux": "electron-builder --project=electron --linux deb --publish=always",

So what am I missing here ?

Error: Cannot cleanup:

Error #1 --------------------------------------------------------------------------------
Error: Please specify project homepage, see https://electron.build/configuration/configuration#Metadata-homepage

Please specify author 'email' in the application package.json

See https://docs.npmjs.com/files/package.json#people-fields-author-contributors

It is required to set Linux .deb package maintainer. Or you can set maintainer in the custom linux options.
(see https://www.electron.build/configuration/linux).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
develarcommented, Apr 24, 2018

Yes, you need latest because to build linux on windows https://github.com/electron-userland/electron-build-service is used (HTTP 2 is required).

1reaction
DevidCICcommented, Apr 24, 2018

Thanks for the help. I already have Node v8.3.0. Is that not enough, do I need to install the version v8.11.1 ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Any Linux Target - electron-builder
The top-level apk , freebsd , pacman , p5p and rpm keys contains set of options instructing electron-builder on how it should build...
Read more >
Build Instructions (Linux) - Electron
Follow the guidelines below for building Electron itself on Linux, for the purposes of creating custom Electron binaries. For bundling and distributing your...
Read more >
Guide to Distributing Electron Apps For Linux
There are half a dozen different packages you can build for Linux, ... For example the Steam game store only officially supports Ubuntu....
Read more >
Packaging and distributing Electron applications using ...
electron -builder is a CLI tool that helps us create multi-platform distributions for Electron applications. It supports macOS, Windows, and ...
Read more >
build a Linux package from Windows using electron-builder
Electron : build a Linux package from Windows using electron-builder and Docker How to build an Electron App in a distributable format for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found