Update old Electron project(0.30.1) to new Electron


#1

I have an old project and just relized Electron changed quite alot of things in 1.0. Is there something I can do to upgrade the code?


#2

You can look up the differences in main.js to be made in version 0.35
For example:

  • require(‘remote’) changes into require(‘electron’).remote
  • ipcMain becomes ipcRenderer
    etc.
    And of course adapt any references to these in the rest of your code