NSIS autoUpdater.setFeedURL throws error
See original GitHub issue- electron-builder: 11.2.4
- electron-auto-updater: 0.10.1
- Target: win32
We have separate release channels based on the configuration of the user (beta|stable).
Using the “hardcoded” configuration on package.json
works fine but when we try to change the feed with autoUpdater.setFeedURL()
it throws an error.
package.json
"build": {
"appId": "app.test",
"win": {
"target": "nsis",
"signingHashAlgorithms": "sha256",
"certificateFile": ".certs/testcert.pfx",
"certificatePassword": "123456789"
},
"publish": {
"provider": "generic",
"url": "https://releases.test.com/channels/stable"
}
},
main.js
...
mainWindow.webContents.once("did-frame-finish-load", function(event) {
dialog.showMessageBox(mainWindow, {title: "autoUpdater", message: 'checking for updates....'});
autoUpdater.setFeedURL('https://releases.test.com/channels/beta'); // throws error
autoUpdater.checkForUpdates();
})
...
error
...\resources\electron.asar\renderer\api\remote.js:217 Uncaught Error: Could not call remote function ''. Check that the function signature is correct. Underlying error: Please pass PublishConfiguration object
Error: Could not call remote function ''. Check that the function signature is correct. Underlying error: Please pass PublishConfiguration object
at callFunction (...\resources\electron.asar\browser\rpc-server.js:235:11)
at EventEmitter.<anonymous> (...\resources\electron.asar\browser\rpc-server.js:342:5)
at emitMany (events.js:127:13)
at EventEmitter.emit (events.js:201:7)
at WebContents.<anonymous> (...\resources\electron.asar\browser\api\web-contents.js:231:13)
at emitTwo (events.js:106:13)
at WebContents.emit (events.js:191:7)
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Electron autoUpdater is not fetching releases from private ...
Electron autoUpdater is working fine with public repository but it ... It is throwing following error: Unable to find latest version on ...
Read more >Electron auto update introduction - Philo's Blog
On Windows, make sure you don't update your application on its first run, or your app will throw a very user unfriendly error....
Read more >electron-builder-squirrel-windows | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn. ≡. Home · Getting started.
Read more >标签· mirrors / electron-userland / electron-builder · GitCode
5d72c104 · fix: deepAssign error without config · 5年前 ... eb6a4536 · feat(electron-updater): NSIS autoUpdater.setFeedURL throws error · 5年前.
Read more >Auto Update - electron-builder
Do not call setFeedURL. electron-builder automatically creates ... Mac, otherwise latest-mac.yml cannot be created, which causes autoUpdater error.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can expect that this issue will be fixed next week (or earlier), after #1089.
Hmm… it seems if you set as
string
, we should just update url in the default publish configuration. Reopened — usability issue.