How to implement Automatic Updates in your Electron JS Application

Поділитися
Вставка
  • Опубліковано 11 лют 2025
  • Hello,
    In this video I am going to show you how to autoupdate an Electron app using the Electron Builder and the ELectron Updater packages.
    The process requires multiple steps but it's simple enough and if you follow along you will be able to create Setups with automatic updates for your applications easily.
    Here's the link to the Github repository for the code
    github.com/cyr...
    Don't forget to Like & Subscribe if this video was helpful.
    Cheers!
    CoderJeet

КОМЕНТАРІ • 49

  • @JAKACLOUD
    @JAKACLOUD 8 місяців тому +2

    The last part of your video was really motivating

  • @82pind
    @82pind Рік тому

    You are star buddy the way you explain and implement is brilliant i love the content believe me

  • @zellonews
    @zellonews 2 місяці тому

    Try to build this and u will see how good it is. Good luck

  • @nang88
    @nang88 2 місяці тому

    Nice

  • @ILCGyangcczmyiyan
    @ILCGyangcczmyiyan 7 днів тому

    I just shutdown my laptop during installation due to low battery, after restart, old app uninstalled and new version not installed, I have no application now, how can I prevent this happen in production

  • @stefan48391
    @stefan48391 Рік тому +2

    Hi, thank you for the video :-) How did you handle signing issue when you distribute your apps?

  • @gersonloaizavargas6703
    @gersonloaizavargas6703 5 місяців тому

    Pretty helpful, nice video

  • @nanayawgodwin4403
    @nanayawgodwin4403 Рік тому +1

    @coderjeet is there a point in importing AppUpdater when it was never used?

  • @leonardobernaez260
    @leonardobernaez260 Рік тому

    Thanks a lot my friend... great video...

  • @XiaoleGuo-jw7zr
    @XiaoleGuo-jw7zr 5 місяців тому

    Hello, I have tried your code, but I have a question that confuses me so much🥲when download is complete, and after we close the old app, which app should we open again? The one in the folder named "win-unpacked"? I would highly apprecaite it if you could clear up my confusions

  • @gabrielemarsili621
    @gabrielemarsili621 6 місяців тому

    have you any advices for files bigger than 2GB? (I can't upload them on GitHub release)

  • @drakZes
    @drakZes Рік тому

    Code Yeet!

  • @gabrielsilverio4431
    @gabrielsilverio4431 7 місяців тому

    Hero

  • @yopuesquienmas9149
    @yopuesquienmas9149 Рік тому

    Bro, I don't know why but I don't have the "dist" folder, will it affect the process?

  • @SheharyarSMAdil
    @SheharyarSMAdil Рік тому

    I am having some issues, like when I am running this application in development mode with 'npm start' it is showing me 'Skip checkForUpdates because application is not packed and dev update config is not forced' and when I am running the application after installation there is no activity. ☹ please help.

    • @coldenate
      @coldenate Рік тому

      you have to build the app. Electron auto updater is disabled when running in a development environment.

    • @worldsfastest684
      @worldsfastest684 Рік тому

      You can use this piece of code to test in dev mode
      Object.defineProperty(app, "isPackaged", {
      get() {
      return true;
      },
      });

  • @alexispiquet5576
    @alexispiquet5576 Рік тому

    Great video, I hope you will create a new one to automate de release deployment using npm scripts instead of do it manually (i mean with a release.ts file in the root of your project). See you soon 😃

    • @alexispiquet5576
      @alexispiquet5576 Рік тому

      I've already created my own, but curious about your approach! 👍

  • @zKinqSmoq
    @zKinqSmoq Рік тому +2

    great video! could you do how it would be with electron vite react on private repository? please! Thank you I liked your video it was very useful!!

  • @zzz-1x
    @zzz-1x Рік тому

    How to preload data and send to renderer before it show up bro?

  • @webeecafe
    @webeecafe 2 роки тому

    yes this is working, but I got Error: EPERM: operation not permitted error when download updated version, how to solve this. Please help me

    • @coderjeet
      @coderjeet  2 роки тому

      Can't say without a code review

  • @ujjawalkumar5707
    @ujjawalkumar5707 2 роки тому

    I have developed an application using angular and express and I want to convert this frontend and backend together for a desktop app, Can you please help me.

    • @coderjeet
      @coderjeet  2 роки тому +1

      Well, to help you I created a pile of tutorials about Electron. If you study them you can convert it easily.

  • @malihdabboussi5143
    @malihdabboussi5143 Рік тому

    Great video, thanks for posting, i am using bytenode when building do you think it's doable with bytnode ? when building I created another electron app that copies files from the original app and compile them with bytenode then runs the build command... do you think that process will work with the electron updator ?

    • @coderjeet
      @coderjeet  Рік тому

      You can implement automatic updates using anything. Even your custom code

  • @-GokulS
    @-GokulS Рік тому

    It gives an error while opening the upgraded application
    Error: no such file or directory

  • @robhopper5729
    @robhopper5729 Рік тому

    I followed your tutorial but my app will not download the update

  • @zertax_2602
    @zertax_2602 Рік тому

    Thanks !!!! But how to do for macos and linux ?

    • @coderjeet
      @coderjeet  Рік тому

      I think the tech is same

    • @zertax_2602
      @zertax_2602 Рік тому

      @@coderjeet ok thanks ! I saw somewhere that was impossible for Linux

  • @yashtalaiche2806
    @yashtalaiche2806 2 роки тому

    how to configure if we use aws code commit instead of github

    • @coderjeet
      @coderjeet  2 роки тому

      That solution is designed for github releases.

    • @yashtalaiche2806
      @yashtalaiche2806 2 роки тому

      @@coderjeet can you please told me configuration for amazon s3 bucket

    • @coderjeet
      @coderjeet  2 роки тому +1

      If you don't use Github release with this library, you'll need to write you rown updation code.
      It's not complicated really, just have one json file on an online location which you check every time to see if there's a new version (compare with the local version) and the download path.
      If a new version is found, download it, and then run the executable using shell.
      I rolled out something like this in .net a long time go.

  • @tripmad
    @tripmad 2 роки тому

    👍👍👍👍👍

  • @yusufansari790
    @yusufansari790 2 роки тому

    it gives an error while opening the upgraded version.
    Error: pth is not defined

    • @yusufansari790
      @yusufansari790 2 роки тому

      This is my auto-updated app
      Error: pth is not defined
      This app will demonstrate how we can apply an auto update to an application.

    • @aconime
      @aconime Рік тому

      @@yusufansari790 In the event update-not-available, there is no variable called pth, so the code in the video at that section is wrong. You can fix it by just replacing showMessage(pth) ---> showMessage("Update not found");

  • @aislx
    @aislx Рік тому

    please do it for type script

  • @holasoyniu8535
    @holasoyniu8535 4 місяці тому

    Es realmente confuso, creo que haré mi propio actualizador.

  • @krishnarajs8012
    @krishnarajs8012 2 роки тому

    Need better video quality, Otherwise, your content is great

    • @JesseAdamson
      @JesseAdamson 2 роки тому +3

      looks good to me, make sure you have HD selected

    • @coderjeet
      @coderjeet  2 роки тому +1

      Yes, HD it is.

    • @drakZes
      @drakZes Рік тому

      Also looks great to me

  • @osmantalhaaydn4426
    @osmantalhaaydn4426 Рік тому

    Can you make a video also an ubuntu

  • @peiyangding
    @peiyangding Рік тому