Update old Electron project(0.30.1) to new Electron


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?


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
    And of course adapt any references to these in the rest of your code