A module that offers to automatically move your Electron app to the Applications folder if opened from another location. Inspired by LetsMove for MacOS.
This module is designed to be used within Electron on macOS, it can be included in a cross platform Electron app and is a no-op on the Windows and Linux platforms.
npm install --save electron-lets-move
You should call the
moveToApplications method as soon as possible after the app
ready event in the main process. Ideally before the user has any chance to interact
with the application.
moveToApplications returns a promise that will resolve when the application is
in the correct location, the user asked not to move or an error occurred. You can
also provide an optional node-style callback as the only parameter.
const app = ;const moveToApplications = ; app;
Electron LetsMove is released under the MIT license. It is simple and easy to understand and places almost no restrictions on what you can do with it. More Information