max-mapper / extract-zip

Zip extraction written in pure JavaScript. Extracts a zip into a directory.
BSD 2-Clause "Simplified" License
388 stars 126 forks source link

EROFS: read-only file system on .plist #120

Open Nashorn opened 3 years ago

Nashorn commented 3 years ago

I am using an auto-update api for an electron app. Grabs latest .zipped up .app from server, downloads and extracts it to overwrite the existing .app. It works fine on my osx, but when another user on a diff machine runs the update, the extraction fails with an error: EROFS: read-only file system on .plist

It is not able to extract and overwrite the contents of the existing .app because .plist seems to be read-only for other users.

Any solution?

Nashorn commented 3 years ago

UPDATE: This is due to osx Sierra AppTranslocation

Nashorn commented 3 years ago

See: https://wiki.keyboardmaestro.com/assistance/Translocation_Problem#:~:text=In%20macOS%20Sierra%2C%20Apple%20added,!)%2C%20the%20application%20will%20be