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
The last part of your video was really motivating
You are star buddy the way you explain and implement is brilliant i love the content believe me
Try to build this and u will see how good it is. Good luck
Nice
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
Hi, thank you for the video :-) How did you handle signing issue when you distribute your apps?
Pretty helpful, nice video
@coderjeet is there a point in importing AppUpdater when it was never used?
Thanks a lot my friend... great video...
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
have you any advices for files bigger than 2GB? (I can't upload them on GitHub release)
Code Yeet!
Hero
Bro, I don't know why but I don't have the "dist" folder, will it affect the process?
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.
you have to build the app. Electron auto updater is disabled when running in a development environment.
You can use this piece of code to test in dev mode
Object.defineProperty(app, "isPackaged", {
get() {
return true;
},
});
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 😃
I've already created my own, but curious about your approach! 👍
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!!
could you do it with a private repo?
How to preload data and send to renderer before it show up bro?
yes this is working, but I got Error: EPERM: operation not permitted error when download updated version, how to solve this. Please help me
Can't say without a code review
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.
Well, to help you I created a pile of tutorials about Electron. If you study them you can convert it easily.
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 ?
You can implement automatic updates using anything. Even your custom code
It gives an error while opening the upgraded application
Error: no such file or directory
I followed your tutorial but my app will not download the update
Thanks !!!! But how to do for macos and linux ?
I think the tech is same
@@coderjeet ok thanks ! I saw somewhere that was impossible for Linux
how to configure if we use aws code commit instead of github
That solution is designed for github releases.
@@coderjeet can you please told me configuration for amazon s3 bucket
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.
👍👍👍👍👍
it gives an error while opening the upgraded version.
Error: pth is not defined
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.
@@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");
please do it for type script
Es realmente confuso, creo que haré mi propio actualizador.
Need better video quality, Otherwise, your content is great
looks good to me, make sure you have HD selected
Yes, HD it is.
Also looks great to me
Can you make a video also an ubuntu
好