Open Jaarson opened 6 months ago
Same problem here when trying to setup permissions for microphone, it just crashes after packaging.
Ive also tested this using an old project with older versions and it works fine. So it seems to be a problem with the new versions.
The default entitlements file is only user for some things in the default configuration. The reference implementation of "default options for file" is here https://github.com/electron/osx-sign/blob/main/src/sign.ts#L96-L112 and you can see that various entitlements files are used for different paths. Removing that logic will cause issues similar to what this original post is about
Perhaps anyone can help me out with this, im trying to use the microphone input.
But it seems that the .app
executable itself doesnt have the same behaviour as the Unix
executable.
There's no way to make an app this way.
Pre-flight checklist
Electron Forge version
7.2.0
Electron version
28.2.2
Operating system
macOS 14.0
Last known working Electron Forge version
No response
Expected behavior
Code from Docs should work, by using provided entitlements:
Actual behavior
When running
npm run make
it fails with following errorAfter commenting out
optionsForFile
part, there are no errorsSteps to reproduce
Create
entitlements.plist
file in root directory of your project, with the content from default entitlements: https://github.com/electron/osx-sign/blob/main/entitlements/default.darwin.plistAdditional information
No response