question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update loop in windows

See original GitHub issue

Hi! I have no idea where i should report it, so i start here with the hope that somebody can help.

I have packaged my windows app with electron builder and i’m using Squirrel.Windows for auto-updates. I’ve put everything from the release to the FTP and set the URL properly. But now when I start the windows app its in an update loop. It downloads the 1.0.0 every time again.

Does someone has an idea how it happened?

859E5121E95B411FA2107DF3A59E3880D4E9EA0B myapp-1.0.0-ia32-full.nupkg 45302165

Main app index.js (i ommited unreleated code)

if (require("electron-squirrel-startup")) {
    return;
}

app.on('ready', function() {
    // create new browserwindow

    // search for updates
    const updateFeed = os == "darwin" ? "https://HOST/updates/latest" : "https://HOST/releases/win32";

    const autoUpdater = require('auto-updater');
    autoUpdater.on("update-downloaded", function() {
        autoUpdater.quitAndInstall();
    });

    autoUpdater.setFeedURL(updateFeed + '?v=' + app.getVersion());
    autoUpdater.checkForUpdates();
});

I am building the windows distribution with OSX (Vine) with the following command: build --platform win32 --arch ia32

OSX is working fine.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:39 (18 by maintainers)

github_iconTop GitHub Comments

4reactions
philipgiulianicommented, Apr 27, 2016

It took me about 5 minutes to get OS X updates working… For Windows i spent a day to find out that it is because i only uploaded the x86 version… Yes i think its ok to generate it because its required.

3reactions
Vj3k0commented, May 20, 2016

I wrote a blog post about building and deploying app, and it supports both 32 and 64 versions of Win: http://electron.rocks/building-and-deploying-application/

Hope it helps, best, Vjeko

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows update stuck in continuous loop
Shut down the Computer. · Remove all power source (including battery if it is a laptop). · Press and hold the power button...
Read more >
How to fix a stuck Windows 10 update - IT PRO
Using Ctrl-Alt-Delete to fix a stuck Windows 10 update · Press the keys 'Ctrl', 'Alt', and 'Delete' on your keyboard at the same...
Read more >
Windows 10 Update Infinite boot Loop (Installing the same ...
Fix Windows 10 Infinite Boot Loop · Press on the Win + I on the keyboard. It will open the Settings window. ·...
Read more >
Restart your computer to install Windows 10 updates loop fix
Restart your computer to install Windows 10 updates loop fix ; Search for regedit.exe and open it · Once you have reached the...
Read more >
Windows 10 update failed loop
"Windows 10 update failed loop" may be caused by a Windows Update where Windows 10 was damaged. Try to use Windows 10 System...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found