I read the official documentation of electron again and found that it actually provides such a thing But it needs to be packaged into an installation package, and electron-release-server is also needed as the server autoUpdater: http: //electron.atom.io/docs/v0.37.5/api...
The following is invalid
electron itself does not seem to provide a similar mechanism
You can check the version yourself and then pop up a reminder. You should be able to use Notification directly on win8 and above. The following uses the Tray provided by electron . Download updates after that can only be done by the user themselves.
However, after electron is started, it does not seem to occupy js or asar files Maybe you can directly download and overwrite the js and asar files in your own directory?
If you don’t encrypt your JS code, I think it’s very simple. It should be possible to directly download and overwrite the js in your own directory. When I was playing, I used electron to package a program, and then just modified the following JS and HTML files without having to package it again and again.
However, in the end, I think electron is just a toy, you can just play with it, and it has little value from all aspects. The program is large in size and runs slowly. If you really want to use webkit, the best way is to manually embed webkit into your program.
I read the official documentation of electron again and found that it actually provides such a thing
But it needs to be packaged into an installation package, and electron-release-server is also needed as the server
autoUpdater: http: //electron.atom.io/docs/v0.37.5/api...
The following is invalid
electron itself does not seem to provide a similar mechanismYou can check the version yourself and then pop up a reminder. You should be able to use Notification directly on win8 and above. The following uses the Tray provided by electron. Download updates after that can only be done by the user themselves.However, after electron is started, it does not seem to occupy js or asar filesMaybe you can directly download and overwrite the js and asar files in your own directory?If you don’t encrypt your JS code, I think it’s very simple. It should be possible to directly download and overwrite the js in your own directory. When I was playing, I used electron to package a program, and then just modified the following JS and HTML files without having to package it again and again.
However, in the end, I think electron is just a toy, you can just play with it, and it has little value from all aspects. The program is large in size and runs slowly. If you really want to use webkit, the best way is to manually embed webkit into your program.