How to show progress bar in a window during downloading in electron-updaterHow can I update NodeJS and NPM to the next versions?How do I update each dependency in package.json to the latest version?Electron developer tools in separate window not showing on WindowsElectron autoupdater progress barElectron app not working on WindowsSee release notes before updating with electron-updaterElectron - develop for Windows on MacElectron auto updater downloading multiple buildsElectron downloading file - Windows Defender PopupElectron Tray Icon doesn't show after once I package

How does NAND gate work? (Very basic question)

Unidentified items in bicycle tube repair kit

Historically, were women trained for obligatory wars? Or did they serve some other military function?

Is Cola "probably the best-known" Latin word in the world? If not, which might it be?

Has any spacecraft ever had the ability to directly communicate with civilian air traffic control?

Does higher resolution in an image imply more bits per pixel?

Accidentally deleted the "/usr/share" folder

If Earth is tilted, why is Polaris always above the same spot?

Why is Arya visibly scared in the library in S8E3?

Why debootstrap can only run as root?

Why are there synthetic chemicals in our bodies? Where do they come from?

Junior developer struggles: how to communicate with management?

Short story about people living in a different time streams

If an enemy is just below a 10-foot-high ceiling, are they in melee range of a creature on the ground?

How do I tell my manager that his code review comment is wrong?

Feels like I am getting dragged into office politics

What happened to Ghost?

I caught several of my students plagiarizing. Could it be my fault as a teacher?

What was the state of the German rail system in 1944?

Power LED from 3.3V Power Pin without Resistor

CRT Oscilloscope - part of the plot is missing

Is lying to get "gardening leave" fraud?

Can a cyclic Amine form an Amide?

I’ve officially counted to infinity!



How to show progress bar in a window during downloading in electron-updater


How can I update NodeJS and NPM to the next versions?How do I update each dependency in package.json to the latest version?Electron developer tools in separate window not showing on WindowsElectron autoupdater progress barElectron app not working on WindowsSee release notes before updating with electron-updaterElectron - develop for Windows on MacElectron auto updater downloading multiple buildsElectron downloading file - Windows Defender PopupElectron Tray Icon doesn't show after once I package






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








2















I'm developing my app with electron and I'm using electron-updater to show a window that asks to the user if he wants download a new app version or not.
I've tried to show in a window a progress bar during the downloading like this.
progress-bar



I've tried to use progress-bar but if I install it, the electron-updater stop working. Now I can see the progress only in dev mode into the electron shell.



autoUpdater.on('download-progress', (progressObj) => 
let log_message = "Scaricamento aggiornamenti in corso... n";
log_message = log_message + "Velocita' scaricamento: " +
progressObj.bytesPerSecond;
log_message = log_message + ' - Scaricati ' + progressObj.percent + '%';
log_message = log_message + ' (' + progressObj.transferred + "/" +
progressObj.total + ')';
log.log('info', log_message);
)


Thank you in advance










share|improve this question






























    2















    I'm developing my app with electron and I'm using electron-updater to show a window that asks to the user if he wants download a new app version or not.
    I've tried to show in a window a progress bar during the downloading like this.
    progress-bar



    I've tried to use progress-bar but if I install it, the electron-updater stop working. Now I can see the progress only in dev mode into the electron shell.



    autoUpdater.on('download-progress', (progressObj) => 
    let log_message = "Scaricamento aggiornamenti in corso... n";
    log_message = log_message + "Velocita' scaricamento: " +
    progressObj.bytesPerSecond;
    log_message = log_message + ' - Scaricati ' + progressObj.percent + '%';
    log_message = log_message + ' (' + progressObj.transferred + "/" +
    progressObj.total + ')';
    log.log('info', log_message);
    )


    Thank you in advance










    share|improve this question


























      2












      2








      2








      I'm developing my app with electron and I'm using electron-updater to show a window that asks to the user if he wants download a new app version or not.
      I've tried to show in a window a progress bar during the downloading like this.
      progress-bar



      I've tried to use progress-bar but if I install it, the electron-updater stop working. Now I can see the progress only in dev mode into the electron shell.



      autoUpdater.on('download-progress', (progressObj) => 
      let log_message = "Scaricamento aggiornamenti in corso... n";
      log_message = log_message + "Velocita' scaricamento: " +
      progressObj.bytesPerSecond;
      log_message = log_message + ' - Scaricati ' + progressObj.percent + '%';
      log_message = log_message + ' (' + progressObj.transferred + "/" +
      progressObj.total + ')';
      log.log('info', log_message);
      )


      Thank you in advance










      share|improve this question
















      I'm developing my app with electron and I'm using electron-updater to show a window that asks to the user if he wants download a new app version or not.
      I've tried to show in a window a progress bar during the downloading like this.
      progress-bar



      I've tried to use progress-bar but if I install it, the electron-updater stop working. Now I can see the progress only in dev mode into the electron shell.



      autoUpdater.on('download-progress', (progressObj) => 
      let log_message = "Scaricamento aggiornamenti in corso... n";
      log_message = log_message + "Velocita' scaricamento: " +
      progressObj.bytesPerSecond;
      log_message = log_message + ' - Scaricati ' + progressObj.percent + '%';
      log_message = log_message + ' (' + progressObj.transferred + "/" +
      progressObj.total + ')';
      log.log('info', log_message);
      )


      Thank you in advance







      node.js electron electron-builder electron-updater






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 22 at 19:55









      pushkin

      4,745123055




      4,745123055










      asked Mar 22 at 18:49









      fggfgg

      828




      828






















          1 Answer
          1






          active

          oldest

          votes


















          0














          (I'm not 100% clear on what you are asking and i don't have enough reputation to add a comment...so i'll do my best)



          I assume that autoUpdater is in the main process, not in a renderer. So, the first thing you need to do is get the data from the progress update to the correct renderer. You can do this using electron's ipcMain and ipcRenderer modules.



          Once you have the data in the renderer process you need to get it to the progress bar. If you are using redux, you can call your store's dispatch(), passing a downloadProgress action to it.



          In my app, which uses redux, I create a DownloadProgress action in the main process and send it over IPC to the renderer. I'd recommend doing the same since you'll probably want to pass DownloadCancelled and DownloadComplete actions too.



          If this is not helpful, please clarify the following:



          • please add the code that doesn't work your question -- this would help understand more precisely what you are trying to do

          • is autoUpdate running in the main process, or in a renderer

          • which progress bar implementation you are using (an npm package?) and how will you send data to it (directly or through a store?)





          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55306071%2fhow-to-show-progress-bar-in-a-window-during-downloading-in-electron-updater%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            (I'm not 100% clear on what you are asking and i don't have enough reputation to add a comment...so i'll do my best)



            I assume that autoUpdater is in the main process, not in a renderer. So, the first thing you need to do is get the data from the progress update to the correct renderer. You can do this using electron's ipcMain and ipcRenderer modules.



            Once you have the data in the renderer process you need to get it to the progress bar. If you are using redux, you can call your store's dispatch(), passing a downloadProgress action to it.



            In my app, which uses redux, I create a DownloadProgress action in the main process and send it over IPC to the renderer. I'd recommend doing the same since you'll probably want to pass DownloadCancelled and DownloadComplete actions too.



            If this is not helpful, please clarify the following:



            • please add the code that doesn't work your question -- this would help understand more precisely what you are trying to do

            • is autoUpdate running in the main process, or in a renderer

            • which progress bar implementation you are using (an npm package?) and how will you send data to it (directly or through a store?)





            share|improve this answer



























              0














              (I'm not 100% clear on what you are asking and i don't have enough reputation to add a comment...so i'll do my best)



              I assume that autoUpdater is in the main process, not in a renderer. So, the first thing you need to do is get the data from the progress update to the correct renderer. You can do this using electron's ipcMain and ipcRenderer modules.



              Once you have the data in the renderer process you need to get it to the progress bar. If you are using redux, you can call your store's dispatch(), passing a downloadProgress action to it.



              In my app, which uses redux, I create a DownloadProgress action in the main process and send it over IPC to the renderer. I'd recommend doing the same since you'll probably want to pass DownloadCancelled and DownloadComplete actions too.



              If this is not helpful, please clarify the following:



              • please add the code that doesn't work your question -- this would help understand more precisely what you are trying to do

              • is autoUpdate running in the main process, or in a renderer

              • which progress bar implementation you are using (an npm package?) and how will you send data to it (directly or through a store?)





              share|improve this answer

























                0












                0








                0







                (I'm not 100% clear on what you are asking and i don't have enough reputation to add a comment...so i'll do my best)



                I assume that autoUpdater is in the main process, not in a renderer. So, the first thing you need to do is get the data from the progress update to the correct renderer. You can do this using electron's ipcMain and ipcRenderer modules.



                Once you have the data in the renderer process you need to get it to the progress bar. If you are using redux, you can call your store's dispatch(), passing a downloadProgress action to it.



                In my app, which uses redux, I create a DownloadProgress action in the main process and send it over IPC to the renderer. I'd recommend doing the same since you'll probably want to pass DownloadCancelled and DownloadComplete actions too.



                If this is not helpful, please clarify the following:



                • please add the code that doesn't work your question -- this would help understand more precisely what you are trying to do

                • is autoUpdate running in the main process, or in a renderer

                • which progress bar implementation you are using (an npm package?) and how will you send data to it (directly or through a store?)





                share|improve this answer













                (I'm not 100% clear on what you are asking and i don't have enough reputation to add a comment...so i'll do my best)



                I assume that autoUpdater is in the main process, not in a renderer. So, the first thing you need to do is get the data from the progress update to the correct renderer. You can do this using electron's ipcMain and ipcRenderer modules.



                Once you have the data in the renderer process you need to get it to the progress bar. If you are using redux, you can call your store's dispatch(), passing a downloadProgress action to it.



                In my app, which uses redux, I create a DownloadProgress action in the main process and send it over IPC to the renderer. I'd recommend doing the same since you'll probably want to pass DownloadCancelled and DownloadComplete actions too.



                If this is not helpful, please clarify the following:



                • please add the code that doesn't work your question -- this would help understand more precisely what you are trying to do

                • is autoUpdate running in the main process, or in a renderer

                • which progress bar implementation you are using (an npm package?) and how will you send data to it (directly or through a store?)






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 13 at 5:08









                Troy GonsalvesTroy Gonsalves

                215




                215





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55306071%2fhow-to-show-progress-bar-in-a-window-during-downloading-in-electron-updater%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript