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

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현