-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checksum mismatch on Windows NSIS #1045
Comments
Probably. Confirmed that we don't queue check updates requests. Should be fixed. In any case it is better to check updates not so often. |
electron-builder: 10.16.0 Target: NSIS I'm receiving the exact same error so there's still something going on I'm afraid. This is my autoUpdater implementation: autoUpdater.addListener("update-available", function(event) {
dialog.showMessageBox(mainWindow, {title: "update-available", message: "A new update is available"});
});
autoUpdater.addListener("update-downloaded", function(event, releaseNotes, releaseName, releaseDate, updateURL) {
dialog.showMessageBox(mainWindow, {title: "A new update is ready to install", message: `Version ${releaseName} is downloaded and will be automatically installed on Quit`});
autoUpdater.quitAndInstall()
return true
});
autoUpdater.addListener("error", function(error) {
dialog.showMessageBox(mainWindow, {title: "error", message: JSON.stringify(error)});
});
autoUpdater.addListener("checking-for-update", function(event) {
dialog.showMessageBox(mainWindow, {title: "checking-for-update", message: "Checking for update"});
});
autoUpdater.addListener("update-not-available", function() {
dialog.showMessageBox(mainWindow, {title: "update-not-available", message: "Update not available"});
});
mainWindow.webContents.once("did-frame-finish-load", function(event) {
dialog.showMessageBox(mainWindow, {title: "autoUpdater", message: 'checking for updates....'});
autoUpdater.checkForUpdates();
}) And package.config:
|
@tvanro What server do you use? Amazon S3? GitHub? Own server (please at least specify server — nginx, some node module). |
@develar thanks for getting back to me. |
I see the same issue, with ownserver (spring boot based) but what I also see is that the file that was downloaded is not runnable, @tvanro does that happen to you too? I wrote a small app that uses electron.net to download a file and pipe it to a file, and what I see that downloading the same file with auto updater results in a file that's 3 KB smaller If I remove the part where it notifies the "transferred" callback (from the compiled js), it works perfectly |
Adding response.pause to the compiled js solved the issue for me |
You rock @maczikasz ! |
Target: NSIS
(building from windows too)
Node version: 6.9.1
npm version: 4.0.3
I'm getting checksum mismatch, like following in the screenshot
I uploaded the executables with
--publish=always
at github and didn't change anything.The fact that I'm checking for updates a lot of times even ater the download starts, can affect this?
Because just for test purpose, I put the check interval to 30 seconds, so I get
update-available
a bunch of times.Plus, I'm getting everytime a different checksum. What's going on?
My autoupdater module is very simple:
And but package config is simple too:
The text was updated successfully, but these errors were encountered: