electron-util
Version:
Useful utilities for Electron apps and modules
12 lines (8 loc) • 563 B
TypeScript
/**
On macOS, for [security reasons](https://github.com/potionfactory/LetsMove/issues/56), if an app is launched outside the Applications folder, it will run in a read-only disk image, which could cause subtle problems for your app.
Use this method to ensure the app lives in the Applications folder.
It must not be used until the `app.whenReady()` promise is resolved.
It will be a no-op during development and on other systems than macOS.
It will offer to automatically move the app for the user.
*/
export declare const enforceMacOSAppLocation: () => void;