私は電子アプリを構築しており、npmパッケージの電子ビルダーを使用してWindows用のアプリとインストーラをビルドしています。私はここで説明するようにアプリを署名するCSC_LINK
とCSC_KEY_PASSWORD
環境変数を使用しようとしている:https://github.com/electron-userland/electron-builder#travis-appveyor-and-other-ci-servers電子ビルダーコード署名をダウンロードする
最初のエラーとスタックトレースがある試してみてください。
Unhandled rejection Error: unable to verify the first certificate
at Error (native)
at TLSSocket.<anonymous> (_tls_wrap.js:1065:38)
at emitNone (events.js:80:13)
at TLSSocket.emit (events.js:179:7)
at TLSSocket._init.ssl.onclienthello.ssl.oncertcb.TLSSocket._finishInit (_tls_wrap.js:593:8)
at TLSWrap.ssl.onclienthello.ssl.oncertcb.ssl.onnewsession.ssl.onhandshakedone (_tls_wrap.js:425:38)
From previous event:
at Object.downloadCertificate (C:\projects\presentation\Electron\node_modules\electron-builder\src\codeSign.ts:97:18)
...
私は、環境変数NODE_TLS_REJECT_UNAUTHORIZED=0
を設定してみました
Unhandled rejection Error: Request error, status 400: Bad Request
at ClientRequest.<anonymous> (C:\projects\presentation\Electron\node_modules\electron-builder\src\httpRequest.ts:36:16)
...
電子ビルダーのhttpRequest.ts
に呼び出されている特定のラインがちょうど使用されるように表示されます。そして今、別のエラーが出ますノードのhttpsモジュール:https.request(...)
https://github.com/electron-userland/electron-builder/blob/master/src/httpRequest.ts#L28
これは私に、Windowsのマシンまたは証明書があると信じています。私はWindows 10、ノード5.9.0でこれを実行しています。