mac: add entitlements needed for camera/microphone access #533
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
With Vesktop v1.5.1 there was a problem with Vesktop not requesting for permission and rather denying access immediately, I assume it is due to it no longer having an ad-hoc signature, though I don't exactly know the specifics but.... adding/specifying the entitlements manually seems to work fine.
Was pretty simple to fix, just adding the entitlements file to
build/
and electron-builder will sign with those entitlements. (not sure why it doesn't use the ones provided inpackage.json
..)Before
After
Note
Also, assuming that it required proper entitlements when signed; camera access and access to bluetooth devices most likely didn't exactly work as well.. Though correct me if I'm wrong, I'm not gonna test it as I don't have devices neccessary.
I have also tested this on an M2 mac with a developer certificate.