electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.69k stars 1.74k forks source link

Error: App is not signed: cannot find valid "Developer ID Application" identity or custom non-Apple code signing certificate #2069

Closed andrei-sheina closed 7 years ago

andrei-sheina commented 7 years ago

Getting an error when trying to build my electron app. My package.json:

{
  "name": "Appname",
  "description": "Cool Appname",
  "author": "Cool guys LLC",
  "version": "0.1.0",
  "private": true,
  "main": "config/electron/start.js",
  "devDependencies": {
    "babel-eslint": "^7.1.1",
    "electron": "1.7.6",
    "electron-builder": "19.10.0",
    "enzyme": "^2.7.1",
    "eslint": "^3.13.0",
    "eslint-config-airbnb": "^14.0.0",
    "eslint-config-datarockets": "^0.0.3",
    "eslint-plugin-import": "^2.2.0",
    "eslint-plugin-jsx-a11y": "^3.0.2",
    "eslint-plugin-react": "^6.9.0",
    "extract-text-webpack-plugin": "1.0.1",
    "foreman": "^2.0.0",
    "react-addons-test-utils": "^15.4.2",
    "react-scripts": "https://github.com/ezhlobo/react-scripts#v0.9.5",
    "stylelint": "^7.9.0",
    "stylelint-config-datarockets": "^0.0.3",
    "stylelint-config-standard": "^16.0.0",
    "webpack": "^1.14.0"
  },
  "dependencies": {
    "accounting": "^0.4.1",
    "async": "^2.1.5",
    "autoprefixer": "^6.7.7",
    "clipboard": "^1.6.1",
    "dom-to-image": "^2.5.2",
    "electron-is-dev": "^0.3.0",
    "lodash": "^4.17.4",
    "lokka": "^1.7.0",
    "lokka-transport-http": "^1.6.1",
    "moment": "^2.17.0",
    "object-fit-images": "^3.1.3",
    "pluralize": "^4.0.0",
    "postcss-calc": "^5.3.1",
    "postcss-clearfix": "^1.0.0",
    "postcss-css-variables": "^0.6.0",
    "postcss-hexrgba": "^0.2.1",
    "postcss-import": "^9.1.0",
    "postcss-mixins": "^5.4.1",
    "postcss-nested": "^1.0.0",
    "postcss-object-fit-images": "^1.1.2",
    "react": "^15.6.1",
    "react-autosuggest": "^8.0.1",
    "react-bootstrap": "^0.30.8",
    "react-css-modules": "^4.1.0",
    "react-dnd": "^2.4.0",
    "react-dnd-html5-backend": "^2.4.1",
    "react-dom": "^15.4.2",
    "react-dropzone": "^3.12.1",
    "react-helmet": "^3.3.2",
    "react-highlight-words": "^0.8.1",
    "react-image-gallery": "^0.7.13",
    "react-infinite-scroller": "^1.0.14",
    "react-redux": "^5.0.5",
    "react-router": "^3.0.0",
    "react-search-input": "^0.11.2",
    "react-slick": "^0.14.7",
    "react-tabs": "^1.1.0",
    "redux": "^3.7.1",
    "redux-saga": "^0.13.0",
    "rollbar-browser": "^1.9.4",
    "sanitize-html": "^1.14.1",
    "slick-carousel": "^1.6.0",
    "superagent": "^3.5.0"
  },
  "scripts": {
    "start": "REACT_APP_REVISION=$(git rev-parse HEAD) WEBPACK_CONFIG_PATH=./config/webpack.config.dev.js react-scripts start",
    "build": "REACT_APP_REVISION=$(git rev-parse HEAD) WEBPACK_CONFIG_PATH=./config/webpack.config.prod.js react-scripts build",
    "test": "NODE_PATH=./ react-scripts test --env=jsdom",
    "lint": "stylelint 'src/**/*.css' && eslint src config",
    "build-package": "PUBLIC_URL=./ yarn run build",
    "electron": "electron --inspect=5858 .",
    "desktop": "nf start -p 3000",
    "electron-mac": "DEBUG=electron-builder build --mac --x64 --publish never",
    "electron-win": "build --win --x64",
    "package": "PUBLIC_URL=./ yarn run build && yarn run electron-mac",
    "package-win": "PUBLIC_URL=./ yarn run build && yarn run electron-win"
  },
  "build": {
    "productName": "Appname",
    "artifactName": "${productName}.${ext}",
    "appId": "co.appnameapp.Appname",
    "mac": {
      "category": "member.art.gallery",
      "type": "distribution"
    },
    "files": [
      "build/",
      "node_modules/",
      "package.json",
      "config/electron/start.js",
      "!build-assets${/*}"
    ],
    "directories": {
      "buildResources": "resources",
      "output": "dist"
    },
    "forceCodeSigning": true,
    "extends": null
  }
}

So my flow is the follworing - first i create static build (html, css and js). It is located under /build folder. image After that, i run shell script, which exports 2 env variables with CSC_LINK and CSC_KEY_PASSWORD. And then runs command to create electron build. Here is my shell script:

export CSC_LINK="$(pwd)/build-assets/mac-dev-installer.p12"
export CSC_KEY_PASSWORD="password"

yarn run electron-mac

My certificate is valid and has private key: image

But I am still getting the following error (output with DEBUG=electron-builder option):

Andreis-MBP:appname-react andrei$ ./build-assets/build-mac.sh 
yarn run v0.27.5
$ DEBUG=electron-builder build --publish never
electron-builder 19.10.0
  electron-builder Effective config:
  electron-builder productName: Appname
  electron-builder artifactName: '${productName}.${ext}'
  electron-builder appId: co.appnameapp.Appname
  electron-builder mac:
  electron-builder   category: member.art.gallery
  electron-builder   type: distribution
  electron-builder files:
  electron-builder   - build/
  electron-builder   - node_modules/
  electron-builder   - package.json
  electron-builder   - config/electron/start.js
  electron-builder   - '!build-assets${/*}'
  electron-builder directories:
  electron-builder   buildResources: resources
  electron-builder   output: dist
  electron-builder forceCodeSigning: true
  electron-builder extends: null
  electron-builder  +0ms
  electron-builder Executing security list-keychains -d user +286ms
  electron-builder     "/Users/andrei/Library/Caches/electron-builder/electron-builder-root-certs.keychain"
  electron-builder     "/Users/andrei/Library/Keychains/login.keychain-db"
  electron-builder     "/Library/Keychains/System.keychain"
  electron-builder  +39ms
  electron-builder Executing security create-keychain -p Szf96v6sZVA= /var/folders/xy/tkc02qzs45x5h3rnns5fmp7c0000gn/T/electron-builder-ldNVs9/0-1.keychain +24ms
  electron-builder Executing security unlock-keychain -p Szf96v6sZVA= /var/folders/xy/tkc02qzs45x5h3rnns5fmp7c0000gn/T/electron-builder-ldNVs9/0-1.keychain +29ms
  electron-builder Executing security set-keychain-settings /var/folders/xy/tkc02qzs45x5h3rnns5fmp7c0000gn/T/electron-builder-ldNVs9/0-1.keychain +59ms
  electron-builder Executing security import /Users/andrei/Work/companyname/appname-react/build-assets/mac-dev-installer.p12 -k /var/folders/xy/tkc02qzs45x5h3rnns5fmp7c0000gn/T/electron-builder-ldNVs9/0-1.keychain -T /usr/bin/codesign -T /usr/bin/productbuild -P 5f85c3638e218076efd7c3abc40709d533cc63b08b02fba970f42110a1b72c43 (sha256 hash) +47ms
  electron-builder 1 identity imported.
  electron-builder  +78ms
No native production dependencies
Packaging for darwin x64 using electron 1.7.6 to dist/mac
  electron-builder Spawning /Users/andrei/Work/companyname/appname-react/node_modules/7zip-bin-mac/7za x -bd /Users/andrei/Library/Caches/electron/electron-v1.7.6-darwin-x64.zip -o/Users/andrei/Work/companyname/appname-react/dist/mac +6s

7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64)

Scanning the drive for archives:
1 file, 48414122 bytes (47 MiB)

Extracting archive: /Users/andrei/Library/Caches/electron/electron-v1.7.6-darwin-x64.zip
--
Path = /Users/andrei/Library/Caches/electron/electron-v1.7.6-darwin-x64.zip
Type = zip
Physical Size = 48414122

Everything is Ok

Folders: 143
Files: 181
Size:       123406452
Compressed: 48414122
  electron-builder /Users/andrei/Work/companyname/appname-react/node_modules/7zip-bin-mac/7za (90723) exited with exit code 0 +2s
  electron-builder Dev or extraneous dependencies in the /Users/andrei/Work/companyname/appname-react: JSONStream, 7zip-bin, 7zip-bin-mac, abab, abbrev, accepts, @types/node, yauzl, xmldom, y18n, yargs-parser, yallist, yargs, xmlbuilder, xml-name-validator, xdg-basedir, xml-char-classes, write-file-stdout, write, write-file-atomic, yargs-parser/node_modules/camelcase, yargs/node_modules/camelcase, yargs/node_modules/cliui, worker-farm, wrap-ansi, wordwrap, window-size, widest-line, wide-align, which-module, whatwg-url, which, whet.extend, whatwg-encoding, websocket-extensions, websocket-driver, webpack-sources, webpack-dev-server, webpack-manifest-plugin, webpack-dev-middleware, whatwg-url/node_modules/webidl-conversions, webpack, webpack-core, webidl-conversions, whatwg-encoding/node_modules/iconv-lite, watchpack, watch, webpack-dev-server/node_modules/sockjs-client, webpack-dev-middleware/node_modules/memory-fs, walker, webpack/node_modules/async, webpack/node_modules/acorn, webpack/node_modules/uglify-js, webpack-core/node_modules/source-map, vm-browserify, verror, vary, watchpack/node_modules/async, vendors, validate-npm-package-license, uuid-1345, webpack/node_modules/uglify-js/node_modules/async, utils-merge, utila, utf8-byte-length, util, user-home, url-parse-lax, url-parse, url-loader, url, upper-case, update-notifier, unzip-response, util/node_modules/inherits, unpipe, universalify, uniqs, unique-string, url-loader/node_modules/mime, url/node_modules/punycode, uniqid, uniq, uglify-to-browserify, uid-number, uglify-js, typedarray, type-is, type-check, tunnel-agent, tweetnacl, tty-browserify, tryit, truncate-utf8-bytes, trim-right, trim-newlines, tr46, tough-cookie, toposort, to-fast-properties, to-arraybuffer, tmpl, timers-browserify, timed-out, through2, through, throat, throttleit, text-table, test-exclude, term-size, tempfile, tar-pack, tar, tapable, through2/node_modules/isarray, table, through2/node_modules/readable-stream, term-size/node_modules/npm-run-path, term-size/node_modules/execa, synesthesia, symbol-tree, svgo, tar-pack/node_modules/debug, tar-pack/node_modules/once, tar-pack/node_modules/ms, svg-tags, tar-pack/node_modules/rimraf, tar-pack/node_modules/readable-stream, table/node_modules/is-fullwidth-code-point, table/node_modules/string-width, supports-color, sumchecker, stylelint-config-standard, stylelint-config-datarockets, stylelint, svgo/node_modules/js-yaml, stylehacks, style-loader, style-search, strip-json-comments, strip-indent, strip-eof, strip-bom, stylelint/node_modules/get-stdin, stylelint/node_modules/is-fullwidth-code-point, stylelint/node_modules/postcss-reporter, stylelint/node_modules/table, stylelint/node_modules/string-width, stringstream, string.prototype.codepointat, string-width, stream-http, stream-combiner, stream-cache, stream-browserify, statuses, stat-mode, sshpk, sprintf-js, split2, speedometer, spdx-expression-parse, spdx-license-ids, specificity, spdx-correct, source-map-support, source-list-map, sort-keys, sockjs, sntp, sockjs-client, slide, slice-ansi, slash, single-line-log, signal-exit, shellwords, shelljs, shell-quote, sockjs/node_modules/faye-websocket, shebang-regex, shebang-command, sha.js, setprototypeof, shelljs/node_modules/interpret, set-immediate-shim, set-blocking, serve-static, serve-index, semver-diff, send, semver, sax, sanitize-filename, sane, safe-buffer, serve-index/node_modules/debug, serve-index/node_modules/ms, send/node_modules/debug, send/node_modules/http-errors, rx-lite, run-async, ripemd160, right-align, rimraf, restore-cursor, resolve-from, requires-port, require-uncached, require-from-string, require-main-filename, request, require-directory, repeating, repeat-string, repeat-element, renderkid, relateurl, regjsparser, regjsgen, require-uncached/node_modules/resolve-from, registry-url, request/node_modules/uuid, registry-auth-token, regexpu-core, renderkid/node_modules/isarray, renderkid/node_modules/domhandler, renderkid/node_modules/readable-stream, renderkid/node_modules/htmlparser2, renderkid/node_modules/domutils, regex-cache, regenerator-transform, regjsparser/node_modules/jsesc, regenerate, redeyed, redent, recursive-readdir, rechoir, readline2, readdirp, read-pkg, read-pkg-up, read-file-stdin, redeyed/node_modules/esprima, react-scripts, react-scripts/node_modules/autoprefixer, react-scripts/node_modules/babel-runtime, react-scripts/node_modules/doctrine, react-scripts/node_modules/eslint-module-utils, react-scripts/node_modules/eslint-plugin-jsx-a11y, react-scripts/node_modules/eslint-plugin-import, react-scripts/node_modules/eslint-plugin-react, react-scripts/node_modules/ms, react-scripts/node_modules/eslint-module-utils/node_modules/debug, react-scripts/node_modules/eslint-plugin-react/node_modules/doctrine, react-dev-utils, react-addons-test-utils, rc, randomatic, range-parser, querystringify, querystring-es3, querystring, punycode, q, pseudomap, prr, proxy-addr, progress, progress-stream, private, process, pretty-format, pretty-error, pretty-bytes, preserve, prepend-http, prelude-ls, postcss-zindex, progress-stream/node_modules/isarray, progress-stream/node_modules/object-keys, progress-stream/node_modules/readable-stream, progress-stream/node_modules/through2, progress-stream/node_modules/xtend, pretty-error/node_modules/utila, postcss-unique-selectors, postcss-svgo, postcss-selector-parser, postcss-scss, postcss-resolve-nested-selector, postcss-reporter, postcss-reduce-transforms, postcss-reduce-initial, postcss-reduce-idents, postcss-ordered-values, postcss-normalize-url, postcss-normalize-charset, postcss-modules-values, postcss-modules-scope, postcss-modules-extract-imports, postcss-modules-local-by-default, postcss-minify-selectors, postcss-minify-params, postcss-minify-gradients, postcss-minify-font-values, postcss-merge-rules, postcss-merge-longhand, postcss-merge-idents, postcss-media-query-parser, postcss-loader, postcss-load-plugins, postcss-load-options, postcss-less, postcss-load-config, postcss-filter-plugins, postcss-discard-unused, postcss-discard-overridden, postcss-discard-empty, postcss-discard-duplicates, postcss-discard-comments, postcss-convert-values, postcss-colormin, plur, plist, pkg-up, pkg-dir, pipetteur, plist/node_modules/base64-js, performance-now, pend, pbkdf2-compat, path-type, path-to-regexp, path-parse, path-key, path-is-inside, path-exists, path-browserify, parseurl, parse5, parse-glob, parse-json, parse-color, param-case, pako, package-json, p-locate, p-limit, p-finally, os-tmpdir, os-locale, os-homedir, os-browserify, original, optimist, optionator, opn, open, onetime, onecolor, on-headers, on-finished, original/node_modules/url-parse, optimist/node_modules/minimist, optimist/node_modules/wordwrap, optionator/node_modules/wordwrap, object.values, object.omit, object.entries, object.assign, object-keys, object-is, oauth-sign, nwmatcher, number-is-nan, nugget, nth-check, npmlog, npm-run-path, normalize-url, normalize-selector, normalize-path, normalize-package-data, nopt, node-pre-gyp, node-notifier, node-libs-browser, npm-run-path/node_modules/path-key, node-int64, node-emoji, no-case, node-pre-gyp/node_modules/rimraf, negotiator, ncname, node-libs-browser/node_modules/readable-stream, natural-compare, mute-stream, mustache, nan, multimatch, mkdirp, minimist, mimic-fn, micromatch, mkdirp/node_modules/minimist, merge, meow, merge-descriptors, memory-fs, media-typer, mem, marked-terminal, marked, map-obj, makeerror, macaddress, lru-cache, lowercase-keys, lower-case, longest, loud-rejection, log-symbols, lodash.uniq, lodash.some, lodash.reduce, lodash.reject, lodash.pickby, lodash.pick, lodash.merge, lodash.memoize, lodash.map, lodash.flatten, lodash.foreach, lodash.filter, lodash.defaults, lodash.cond, lodash.clonedeep, lodash.bind, lodash.camelcase, lodash.assignin, lodash.assign, lodash._bindcallback, lodash._basefor, lodash._basecopy, lodash._baseclone, lodash._baseassign, lodash._arrayeach, lodash._arraycopy, loader-utils, locate-path, load-json-file, levn, ldjson-stream, lcid, lazy-cache, latest-version, known-css-properties, klaw, kind-of, locate-path/node_modules/path-exists, jsprim, jsx-ast-utils, jsonpointer, jsonparse, jsonify, jsonfilter, jsonfile, json5, json3, json-stringify-safe, json-stable-stringify, json-schema-traverse, json-schema, json-loader, jsesc, jsdom, jsbn, js-yaml, jodid25519, jest-util, jest-snapshot, jest-runtime, jest-resolve-dependencies, jest-resolve, jest-mock, jest-matchers, js-yaml/node_modules/esprima, jest-matcher-utils, jest-jasmine2, jest-runtime/node_modules/camelcase, jest-runtime/node_modules/which-module, jest-runtime/node_modules/yargs-parser, jest-runtime/node_modules/yargs, jest-haste-map, jest-file-exists, jest-environment-node, jest-environment-jsdom, jest-diff, jest-config, jest-cli, jest-changed-files, istanbul-reports, jest, istanbul-lib-source-maps, istanbul-lib-instrument, istanbul-lib-report, istanbul-lib-hook, istanbul-lib-coverage, jest-cli/node_modules/callsites, jest-cli/node_modules/which-module, jest-cli/node_modules/camelcase, jest-cli/node_modules/yargs, jest-cli/node_modules/yargs-parser, istanbul-api, isstream, isobject, istanbul-lib-report/node_modules/async, istanbul-lib-report/node_modules/supports-color, isexe, isbinaryfile, is-utf8, is-typedarray, is-symbol, is-svg, is-supported-regexp-flag, is-subset, is-retry-allowed, is-resolvable, is-regexp, is-regex, is-redirect, is-property, is-primitive, is-posix-bracket, is-plain-obj, is-path-inside, is-path-in-cwd, is-path-cwd, is-obj, is-number, is-npm, is-my-json-valid, is-glob, is-fullwidth-code-point, is-finite, is-extglob, is-extendable, is-equal-shallow, is-dotfile, is-ci, is-date-object, is-callable, is-builtin-module, is-buffer, is-arrayish, is-binary-path, irregular-plurals, is-absolute-url, ipaddr.js, invert-kv, interpret, ini, inquirer, indexof, indent-string, indexes-of, import-lazy, imurmurhash, ignore, ieee754, icss-replace-symbols, https-browserify, http-signature, http-proxy-middleware, http-proxy, http-errors, html-webpack-plugin, html-tags, html-minifier, http-signature/node_modules/assert-plus, http-proxy-middleware/node_modules/is-extglob, http-proxy/node_modules/requires-port, http-proxy-middleware/node_modules/is-glob, http-proxy-middleware/node_modules/http-proxy, http-errors/node_modules/setprototypeof, html-entities, html-encoding-sniffer, html-comment-regex, hosted-git-info, home-path, home-or-tmp, hoek, he, hawk, has-unicode, has, har-validator, har-schema, handlebars, gzip-size, growly, graceful-readlink, graceful-fs, got, globjoin, globals, glob-parent, glob-base, handlebars/node_modules/async, handlebars/node_modules/source-map, getpass, get-stream, get-stdin, get-caller-file, generate-object-property, generate-function, gauge, gather-stream, function.prototype.name, function-bind, fstream, fstream-ignore, fsevents, fs-extra-p, fs-extra, fresh, forwarded, forever-agent, fsevents/node_modules/ansi-regex, fsevents/node_modules/ansi-styles, fsevents/node_modules/abbrev, fsevents/node_modules/aproba, fsevents/node_modules/are-we-there-yet, fsevents/node_modules/asn1, fsevents/node_modules/assert-plus, fsevents/node_modules/asynckit, foreman, foreach, fs-extra-p/node_modules/fs-extra, fs-extra-p/node_modules/jsonfile, for-own, for-in, flatten, flat-cache, fsevents/node_modules/xtend, fsevents/node_modules/wrappy, fsevents/node_modules/verror, fsevents/node_modules/uuid, fsevents/node_modules/wide-align, fsevents/node_modules/uid-number, fsevents/node_modules/util-deprecate, fsevents/node_modules/tweetnacl, find-up, find-cache-dir, finalhandler, fill-range, filesize, fileset, filename-regex, fsevents/node_modules/tunnel-agent, fsevents/node_modules/tough-cookie, fsevents/node_modules/tar-pack, file-entry-cache, fsevents/node_modules/tar, file-loader, fsevents/node_modules/supports-color, fsevents/node_modules/strip-json-comments, fsevents/node_modules/strip-ansi, fsevents/node_modules/stringstream, finalhandler/node_modules/debug, figures, fd-slicer, fcopy-pre-bundled, faye-websocket, fb-watchman, fsevents/node_modules/string_decoder, fsevents/node_modules/sntp, fsevents/node_modules/string-width, fsevents/node_modules/sshpk, fastparse, fsevents/node_modules/semver, fsevents/node_modules/signal-exit, fsevents/node_modules/set-blocking, fsevents/node_modules/tar-pack/node_modules/once, fsevents/node_modules/tar-pack/node_modules/readable-stream, fast-deep-equal, fast-levenshtein, extsprintf, extract-zip, extract-text-webpack-plugin, extglob, fsevents/node_modules/rimraf, fsevents/node_modules/request, fsevents/node_modules/readable-stream, fsevents/node_modules/qs, fsevents/node_modules/rc, fsevents/node_modules/punycode, fsevents/node_modules/process-nextick-args, fsevents/node_modules/sshpk/node_modules/assert-plus, express, expand-range, expand-brackets, extract-zip/node_modules/debug, extract-zip/node_modules/concat-stream, extract-zip/node_modules/minimist, extract-zip/node_modules/readable-stream, extract-zip/node_modules/mkdirp, exit-hook, extract-text-webpack-plugin/node_modules/async, fsevents/node_modules/pinkie-promise, fsevents/node_modules/pinkie, fsevents/node_modules/oauth-sign, fsevents/node_modules/path-is-absolute, fsevents/node_modules/once, fsevents/node_modules/object-assign, fsevents/node_modules/number-is-nan, fsevents/node_modules/rc/node_modules/minimist, execall, express/node_modules/debug, execa, exec-sh, eventsource, events, fsevents/node_modules/npmlog, fsevents/node_modules/nopt, fsevents/node_modules/node-pre-gyp, fsevents/node_modules/ms, fsevents/node_modules/mkdirp, eventemitter3, fsevents/node_modules/minimist, fsevents/node_modules/minimatch, event-emitter, fsevents/node_modules/mime-types, etag, execa/node_modules/cross-spawn, esutils, estraverse, esrecurse, esprima, fsevents/node_modules/mime-db, espree, fsevents/node_modules/jsonpointer, fsevents/node_modules/jsprim, fsevents/node_modules/json-stringify-safe, eslint-plugin-react, fsevents/node_modules/json-schema, fsevents/node_modules/jsbn, fsevents/node_modules/jodid25519, fsevents/node_modules/isstream, eslint-plugin-jsx-a11y, eslint-plugin-import, eslint-plugin-flowtype, esrecurse/node_modules/estraverse, eslint-module-utils, eslint-loader, eslint-import-resolver-node, fsevents/node_modules/is-property, fsevents/node_modules/isarray, fsevents/node_modules/is-my-json-valid, fsevents/node_modules/is-typedarray, fsevents/node_modules/ini, fsevents/node_modules/inherits, fsevents/node_modules/is-fullwidth-code-point, fsevents/node_modules/inflight, eslint-config-react-app, eslint-config-airbnb-base, eslint-config-datarockets, eslint-config-airbnb, eslint, escope, eslint-module-utils/node_modules/ms, eslint-module-utils/node_modules/debug, fsevents/node_modules/hoek, fsevents/node_modules/http-signature, fsevents/node_modules/hawk, fsevents/node_modules/has-unicode, escodegen, escape-html, fsevents/node_modules/has-ansi, fsevents/node_modules/graceful-readlink, fsevents/node_modules/har-validator, es6-weak-map, fsevents/node_modules/graceful-fs, es6-symbol, es6-set, eslint/node_modules/babel-code-frame, eslint/node_modules/js-tokens, eslint/node_modules/strip-bom, eslint/node_modules/pluralize, es6-promise, es6-map, fsevents/node_modules/glob, fsevents/node_modules/getpass, es6-iterator, fsevents/node_modules/generate-object-property, fsevents/node_modules/generate-function, escodegen/node_modules/source-map, escodegen/node_modules/estraverse, fsevents/node_modules/gauge, fsevents/node_modules/fstream-ignore, fsevents/node_modules/fstream, fsevents/node_modules/fs.realpath, es5-ext, es-to-primitive, es-abstract, error-ex, errno, enzyme, fsevents/node_modules/form-data, fsevents/node_modules/forever-agent, fsevents/node_modules/extsprintf, fsevents/node_modules/extend, fsevents/node_modules/getpass/node_modules/assert-plus, fsevents/node_modules/ecc-jsbn, fsevents/node_modules/escape-string-regexp, fsevents/node_modules/delegates, env-paths, enhanced-resolve, encodeurl, emojis-list, fsevents/node_modules/delayed-stream, fsevents/node_modules/deep-extend, fsevents/node_modules/debug, fsevents/node_modules/dashdash, fsevents/node_modules/core-util-is, fsevents/node_modules/concat-map, fsevents/node_modules/cryptiles, fsevents/node_modules/console-control-strings, emoji-regex, electron-publish, electron-osx-sign, enhanced-resolve/node_modules/memory-fs, electron-download-tf, fsevents/node_modules/combined-stream, fsevents/node_modules/commander, fsevents/node_modules/code-point-at, fsevents/node_modules/chalk, fsevents/node_modules/caseless, fsevents/node_modules/buffer-shims, fsevents/node_modules/brace-expansion, electron-download, fsevents/node_modules/dashdash/node_modules/assert-plus, electron-builder-util, electron-publish/node_modules/mime, electron-builder-http, electron-builder, electron-osx-sign/node_modules/plist, electron-download-tf/node_modules/debug, electron-download-tf/node_modules/jsonfile, electron-download-tf/node_modules/fs-extra, electron-download-tf/node_modules/ms, electron-download-tf/node_modules/path-exists, electron-download-tf/node_modules/rc, electron-download-tf/node_modules/sumchecker, fsevents/node_modules/block-stream, fsevents/node_modules/bcrypt-pbkdf, fsevents/node_modules/boom, electron, fsevents/node_modules/balanced-match, fsevents/node_modules/aws-sign2, fsevents/node_modules/aws4, fsevents/node_modules/chalk/node_modules/supports-color, ee-first, electron-builder-util/node_modules/debug, electron-builder-util/node_modules/ms, ecc-jsbn, electron-builder-http/node_modules/debug, electron-builder-http/node_modules/ms, electron-builder/node_modules/ajv, electron-builder/node_modules/balanced-match, electron-builder/node_modules/brace-expansion, electron-builder/node_modules/ajv-keywords, electron-builder/node_modules/camelcase, electron-builder/node_modules/debug, electron-builder/node_modules/esprima, electron-builder/node_modules/find-up, duplexer3, electron-download-tf/node_modules/sumchecker/node_modules/ms, electron-download-tf/node_modules/sumchecker/node_modules/debug, duplexer2, duplexer, dotenv, dot-prop, electron-builder/node_modules/yargs, electron-builder/node_modules/strip-bom, electron-builder/node_modules/string-width, electron-builder/node_modules/normalize-package-data, electron-builder/node_modules/read-pkg-up, electron-builder/node_modules/read-pkg, electron-builder/node_modules/path-type, electron-builder/node_modules/os-locale, domain-browser, duplexer2/node_modules/isarray, duplexer2/node_modules/readable-stream, electron-builder/node_modules/ms, electron-builder/node_modules/minimatch, electron-builder/node_modules/load-json-file, electron-builder/node_modules/js-yaml, electron-builder/node_modules/is-fullwidth-code-point, electron-builder/node_modules/hosted-git-info, dom-converter, doiuse, electron-builder/node_modules/normalize-package-data/node_modules/hosted-git-info, electron-builder/node_modules/read-pkg/node_modules/normalize-package-data, electron-builder/node_modules/read-pkg/node_modules/hosted-git-info, doctrine, diff, detect-port, detect-indent, doiuse/node_modules/source-map, doiuse/node_modules/yargs, doiuse/node_modules/window-size, depd, destroy, delegates, del, defined, define-properties, deep-is, default-require-extensions, deep-extend, decamelize, date-now, dashdash, damerau-levenshtein, del/node_modules/globby, d, currently-unhandled, cuint, cssom, cssstyle, csso, cssnano, cssesc, css-what, css-tokenize, css-selector-tokenizer, css-select, css-loader, css-rule-stream, css-tokenize/node_modules/readable-stream, css-tokenize/node_modules/isarray, css-color-names, crypto-random-string, css-loader/node_modules/css-selector-tokenizer, crypto-browserify, cryptiles, cross-spawn-async, cross-spawn, create-error-class, cosmiconfig, cookie-signature, cookie, convert-source-map, content-type-parser, content-type, content-disposition, contains-path, constants-browserify, console-control-strings, console-browserify, connect-history-api-fallback, concat-stream, configstore, compression, compressible, commondir, compare-version, commander, colors, compression/node_modules/ms, compression/node_modules/debug, colormin, color-string, colorguard, color-diff, color-convert, color-name, color, code-point-at, coa, co, clone-regexp, clone, colormin/node_modules/css-color-names, colorguard/node_modules/yargs, color/node_modules/color-convert, cliui, cli-width, cli-cursor, cli-usage, cli-table, cli-boxes, clean-css, clap, circular-json, chromium-pickle-js, ci-info, chokidar, cli-table/node_modules/colors, cheerio, caseless, center-align, case-sensitive-paths-webpack-plugin, cardinal, capture-stack-trace, caniuse-api, camelcase-keys, camelcase, camel-case, callsites, caller-path, bytes, builtin-status-codes, builtin-modules, buffer, bser, browserify-zlib, browserify-aes, boxen, braces, browser-resolve, boom, boolbase, bluebird-lst, bluebird, block-stream, binary-extensions, big.js, bcrypt-pbkdf, boxen/node_modules/camelcase, boxen/node_modules/string-width, boxen/node_modules/is-fullwidth-code-point, browser-resolve/node_modules/resolve, batch, base64-js, babylon, babel-types, babel-traverse, babel-template, babel-runtime, babel-register, babel-preset-react-app, babel-preset-react, babel-preset-env, babel-preset-jest, babel-plugin-transform-strict-mode, babel-plugin-transform-runtime, babel-plugin-transform-regenerator, babel-register/node_modules/babel-core, babel-register/node_modules/source-map-support, babel-preset-react-app/node_modules/babel-runtime, babel-plugin-transform-react-jsx-source, babel-plugin-transform-react-jsx-self, babel-plugin-transform-react-jsx, babel-plugin-transform-react-display-name, babel-plugin-transform-react-constant-elements, babel-plugin-transform-object-rest-spread, babel-plugin-transform-flow-strip-types, babel-plugin-transform-exponentiation-operator, babel-plugin-transform-es2015-unicode-regex, babel-plugin-transform-es2015-typeof-symbol, babel-plugin-transform-es2015-template-literals, babel-plugin-transform-es2015-spread, babel-plugin-transform-es2015-shorthand-properties, babel-plugin-transform-es2015-sticky-regex, babel-plugin-transform-es2015-parameters, babel-plugin-transform-es2015-object-super, babel-plugin-transform-es2015-modules-umd, babel-plugin-transform-es2015-modules-systemjs, babel-plugin-transform-es2015-modules-commonjs, babel-plugin-transform-es2015-modules-amd, babel-plugin-transform-es2015-literals, babel-plugin-transform-es2015-unicode-regex/node_modules/regexpu-core, babel-plugin-transform-es2015-function-name, babel-plugin-transform-es2015-for-of, babel-plugin-transform-es2015-duplicate-keys, babel-plugin-transform-es2015-destructuring, babel-plugin-transform-es2015-computed-properties, babel-plugin-transform-es2015-classes, babel-plugin-transform-es2015-block-scoping, babel-plugin-transform-es2015-modules-systemjs/node_modules/babel-runtime, babel-plugin-transform-es2015-block-scoped-functions, babel-plugin-transform-es2015-arrow-functions, babel-plugin-transform-class-properties, babel-plugin-transform-async-to-generator, babel-plugin-syntax-trailing-function-commas, babel-plugin-syntax-object-rest-spread, babel-plugin-syntax-jsx, babel-plugin-transform-es2015-block-scoping/node_modules/babel-runtime, babel-plugin-syntax-flow, babel-plugin-syntax-exponentiation-operator, babel-plugin-syntax-class-properties, babel-plugin-syntax-async-functions, babel-plugin-istanbul, babel-plugin-jest-hoist, babel-plugin-check-es2015-constants, babel-messages, babel-loader, babel-jest, babel-helper-replace-supers, babel-helpers, babel-helper-remap-async-to-generator, babel-helper-regex, babel-helper-optimise-call-expression, babel-helper-hoist-variables, babel-helper-get-function-arity, babel-helper-function-name, babel-helper-explode-assignable-expression, babel-helper-define-map, babel-helper-call-delegate, babel-helper-builder-react-jsx, babel-helper-builder-binary-assignment-operator-visitor, babel-generator, babel-eslint, babel-core, babel-code-frame, aws4, aws-sign2, babel-eslint/node_modules/babel-code-frame, babel-eslint/node_modules/babel-runtime, babel-eslint/node_modules/js-tokens, babel-eslint/node_modules/babel-types, async-each, assert-plus, assert, ast-types-flow, asn1, asar-integrity, array.prototype.find, arrify, array-unique, array-reduce, array-map, array-flatten, array-find-index, array-filter, array-differ, array-equal, arr-flatten, arr-diff, aria-query, argparse, are-we-there-yet, append-transform, aproba, ansicolors, anymatch, ansi-escapes, ansi-html, ansi-align, amdefine, align-text, ajv-keywords, alphanum-sort, ajv, acorn-jsx, acorn, acorn-globals, acorn-jsx/node_modules/acorn +5s
  electron-builder Executing security find-identity -v /var/folders/xy/tkc02qzs45x5h3rnns5fmp7c0000gn/T/electron-builder-ldNVs9/0-1.keychain +14s
  electron-builder Executing security find-identity -v -p codesigning /var/folders/xy/tkc02qzs45x5h3rnns5fmp7c0000gn/T/electron-builder-ldNVs9/0-1.keychain +9ms
  electron-builder      0 valid identities found
  electron-builder  +25ms
  electron-builder   1) 533E322916991DCB44A0D2B696E0F4F49A4DC2EE "Developer ID Installer: Mighty LLC (blablaHD65E)"
  electron-builder      1 valid identities found
  electron-builder  +34ms
Error: App is not signed: cannot find valid "Developer ID Application" identity or custom non-Apple code signing certificate, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
    at /Users/andrei/Work/companyname/appname-react/node_modules/electron-builder/src/macPackager.ts:177:17
    at Generator.next (<anonymous>)
From previous event:
    at MacPackager.sign (/Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/out/macPackager.js:291:11)
    at /Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/src/macPackager.ts:91:26
From previous event:
    at /Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/src/macPackager.ts:91:10
    at Generator.next (<anonymous>)
From previous event:
    at MacPackager.pack (/Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/out/macPackager.js:184:11)
    at /Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/src/packager.ts:229:24
From previous event:
    at Packager.doBuild (/Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/out/packager.js:308:11)
    at /Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/src/packager.ts:161:52
    at Generator.next (<anonymous>)
    at runCallback (timers.js:800:20)
    at tryOnImmediate (timers.js:762:5)
    at processImmediate [as _immediateCallback] (timers.js:733:5)
From previous event:
    at Packager.build (/Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/out/packager.js:219:11)
    at /Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/src/builder.ts:250:40
    at Generator.next (<anonymous>)
    at build (/Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/out/builder.js:69:21)
    at Object.args [as handler] (/Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/src/cli/cli.ts:41:4)
    at Object.self.runCommand (/Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/node_modules/yargs/lib/command.js:233:22)
    at Object.Yargs.self._parseArgs (/Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/node_modules/yargs/yargs.js:1018:24)
    at Object.get [as argv] (/Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/node_modules/yargs/yargs.js:927:19)
    at Object.<anonymous> (/Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/src/cli/cli.ts:36:15)
From previous event:
    at build (/Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/out/builder.js:69:21)
    at Object.args [as handler] (/Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/out/cli/cli.js:114:9)
    at Object.self.runCommand (/Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/node_modules/yargs/lib/command.js:233:22)
    at Object.Yargs.self._parseArgs (/Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/node_modules/yargs/yargs.js:1018:24)
    at Object.get [as argv] (/Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/node_modules/yargs/yargs.js:927:19)
    at Object.<anonymous> (/Users/andrei/Work/compnanyname/appname-react/node_modules/electron-builder/out/cli/cli.js:110:314)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Function.Module.runMain (module.js:605:10)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:575:3
error Command failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Sertificate is 100% valid, since it's possible to sign in app post factum with productsign. But i need to implement autoUpdater and it require app to be signed during building.

develar commented 7 years ago

You don't have required cert. must be Developer ID Application.

Installer cert is only to package pkg.

Mac developer cert is not used, because you explicitly set mac.type to distribution.