node.js - How to detect if an app is run from the dmg file? - Stack Overflow

PHOTO EMBED

Fri May 07 2021 10:23:55 GMT+0000 (Coordinated Universal Time)

Saved by @canering #javascript

Cannot update while running on a read-only volume. The application is on a read-only volume. Please move the application and try again. If you're on macOS Sierra or later, you'll need to move the application out of the Downloads directory. See https://github.com/Squirrel/Squirrel.Mac/issues/182 for more information.
content_copyCOPY

https://stackoverflow.com/questions/65346127/how-to-detect-if-an-app-is-run-from-the-dmg-file