Current Version (after AutoUpdater Runs)


I’m using the auto-updater module, and when the download completes I’m running autoUpdater.quitAndInstall().

It appears to be working, because the downloaded version when it loads is different. I’m reading the version number from the package.json file, like so

export const PACKAGE = require('../../package.json');
export const VERSION = PACKAGE.version;

Is the correct way to do this. What’s is it as simple as replacing the file that is copied into the Applications folder (on OSX) or is there something more sophisticated going on with auto-updates?