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.46k stars 1.71k forks source link

electron-updater ERR_UPDATER_INVALID_SIGNATURE #8246

Open zengxiaoya opened 4 weeks ago

zengxiaoya commented 4 weeks ago

"electron-updater": "^6.1.8",

zengxiaoya commented 4 weeks ago

NsisUpdater.js code Error const signatureVerificationStatus = await this.verifySignature(destinationFile); if (signatureVerificationStatus != null) { await removeTempDirIfAny(); // noinspection ThrowInsideFinallyBlockJS throw (0, builder_util_runtime_1.newError)(New version ${downloadUpdateOptions.updateInfoAndProvider.info.version} is not signed by the application owner: ${signatureVerificationStatus}, "ERR_UPDATER_INVALID_SIGNATURE"); }

zengxiaoya commented 4 weeks ago

此段代码的null判断存在逻辑问题