Failed to generate Electron build

0

I'm using the electron-builder to generate a linux installer. Through the travis service I integrated my project with bintray so that the build was sent to it, but I can not execute the project build for linux. I am using windows 10 and through travis was trying to generate the linux installers. I'm following this tutorial but I'm getting into my project: link

This is my .travis.yml file code:

dist: trusty
sudo: false

language: node_js
node_js: "8"

env:
  global:
    - ELECTRON_CACHE=$HOME/.cache/electron
    - ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder

os:
  - linux

cache:
  directories:
  - node_modules
  - $HOME/.cache/electron
  - $HOME/.cache/electron-builder

addons:
  apt:
    packages:
      - rpm

install:
  - npm install

script:
  - npm run dist

before_cache:
  - rm -rf $HOME/.cache/electron-builder/wine

branches:
  except:
    - "/^v\d+\.\d+\.\d+$/"

And this is my package.json file:

{
  "name": "electron_yaml_teste",
  "version": "1.1.0",
  "description": "Software Fazer alterações em arquivos YML da Mensageria graficamente.",
  "author": "Gladson Bruno",
  "license": "Apache-2.0",
  "main": "main.js",
  "build": {
    "appId": "com.example.electronyamlteste",
    "productName": "EditorVisualYML",
    "publish": [
      {
        "provider": "github",
        "repo": "Editor_YAML_Mensageria",
        "owner": "GladsonBruno"
      }
    ],
    "linux": {
      "category": "Utils",
      "icon": "assets/icons/linux",
      "packageCategory": "utils",
      "maintainer": "Gladson Bruno",
      "target": [ "deb", "rpm", "AppImage" ],
      "synopsis": "Software Fazer alterações em arquivos YML da Mensageria graficamente."
    },
    "deb": {
      "publish": [
        {
          "provider": "bintray",
          "package": "Editor-YAML-Mensageria",
          "repo": "Editor-YAML-Mensageria-Debian",
          "user": "gladson",
          "component": "Editor-YAML-Mensageria"
        }
      ],
      "depends": [
        "gconf2",
        "gconf-service",
        "libnotify4",
        "libappindicator1",
        "libxtst6",
        "libnss3"
      ]
    },
    "rpm": {
      "publish": [
        {
          "provider": "bintray",
          "package": "Editor-YAML-Mensageria",
          "repo": "Editor-YAML-Mensageria-RPM",
          "user": "gladson"
        }
      ],
      "depends": [
        "GConf2",
        "libnotify",
        "nss",
        "libappindicator",
        "libXtst"
      ]
    }
  },
  "snap": {
    "confinement": "strict",
    "summary": "Software Fazer alterações em arquivos YML da Mensageria graficamente.",
    "grade": "stable",
    "buildPackages": [],
    "stagePackages": [
      "libnotify4",
      "libappindicator1",
      "libxtst6",
      "libnss3",
      "libxss1",
      "fontconfig-config",
      "gconf2",
      "libasound2",
      "pulseaudio"
    ],
    "plugs": [
      "default"
    ]
  },
  "scripts": {
    "pack": "build --dir",
    "dist": "build --arch all",
    "postinstall": "install-app-deps",
    "start": "electron .",
    "test": "echo \"Error: no test specified\" && exit 0"
  },
  "dependencies": {
    "crypto-js": "^3.1.9-1",
    "jquery": "^3.3.1",
    "jquery-validation": "^1.17.0",
    "js-sha512": "^0.7.1",
    "node-yaml": "^3.1.1",
    "write-yaml": "^1.0.0"
  },
  "devDependencies": {
    "devtron": "1.4.0",
    "electron": "1.7.9",
    "electron-debug": "1.4.0",
    "electron-devtools-installer": "2.2.1",
    "electron-packager": "9.1.0",
    "electron-rebuild": "^1.7.3",
    "electron-builder": "^18.0.1",
    "7zip-bin-linux": "1.3.1"
  }
}

This project is integrated into my github, whenever it generates a push travis tries to generate the project build to create a linux installer and host in bintray. This would be the goal of the tutorial but I can not generate the build, I always have this error:

By mistake my build configuration is wrong but typed exactly as it did in the tutorial. I copied the package.json file and changed only information from which git and bintray repository will be used.

What can this be?

    
asked by anonymous 23.03.2018 / 18:07

0 answers