Closed wangxiexe closed 7 years ago
Those lifecycle events are Squirrel.Windows-specific. You can recreate them by storing some state and noting it (or in the case of install, the lack thereof).
thanks @joshaber , what I want to do is clear the data when the app is moved into trash. do you have any best practice for such case with Squirrel.Mac ? thanks.
Unfortunately macOS doesn't provide any hooks for application deletion.
I am using electron-builder to create app which has Squirrel.Mac support
the build output is dmg and I can install the app by drag it into application folder
but I noticed the life cycle events (which works fine on windows) like "--squirrel-install" "--squirrel-updated" are not issued, and I can not add handler
is it by design or if there is some other way on mac I can do to listen for life cycle events ?
thanks.