You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Because the Neutralino.storage functions write to the application directory, using them in a macOS app bundle causes the bundle contents to be modified. This breaks code signing and notarization, preventing the app from running.
A previous workaround referenced in this issue no longer works: #1131
Run the app so that the storage functions are executed.
Close the app and attempt to run it a second time.
The app fails to run with a "app is damaged and cannot be opened" error because the bundle has been modified.
Expected behavior
The app bundle should not be modified. Either the storage functions could internally use the appropriate ~/Library/Application Support/<bundle id> path on macOS, or they could provide a way to configure the directory they write to and leave it to the app developer to correctly set the folder.
Specifications
OS: macOS
Neutralinojs version: 5.1.0
Neutralinojs client library version: 5.1.0
Neutralinojs CLI version: 11.0.1
The text was updated successfully, but these errors were encountered:
Describe the bug
Because the
Neutralino.storage
functions write to the application directory, using them in a macOS app bundle causes the bundle contents to be modified. This breaks code signing and notarization, preventing the app from running.A previous workaround referenced in this issue no longer works: #1131
It seems that the
Resources
folder inside a bundle used to be considered writable, but current code-signing requires the entire bundle to be read-only: https://developer.apple.com/library/archive/documentation/Security/Conceptual/CodeSigningGuide/Procedures/Procedures.htmlThe recommended way to handle this is to use
~/Library/Application Support/<bundle id>
as described here: https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html#//apple_ref/doc/uid/TP40010672-CH10-SW1To Reproduce
Steps to reproduce the behavior:
storage
apis to store some data.storage
functions are executed.Expected behavior
The app bundle should not be modified. Either the
storage
functions could internally use the appropriate~/Library/Application Support/<bundle id>
path on macOS, or they could provide a way to configure the directory they write to and leave it to the app developer to correctly set the folder.Specifications
The text was updated successfully, but these errors were encountered: