heyman / heynote

A dedicated scratchpad for developers
https://heynote.com
Other
3.86k stars 194 forks source link

Remove unneeded macOS signing entitlements #174

Closed BlackHoleFox closed 7 months ago

BlackHoleFox commented 7 months ago

Hiyo, thanks again for the app. After installing Heynote on my Mac I noticed the entitlements were slightly off. Hopefully they should be good now :)

The other ones I removed only do anything when your app is sandboxed, and Heynote is not since its using the standard Electron build. If you ever distribute Heynote on the Mac app store, you'll need to bring these back in another file,

heyman commented 7 months ago

Thanks!

Question: If com.apple.security.inherit and com.apple.security.network.client currently have no effect, but would be needed if Heynote were to be distributed on Apple's app store, maybe it would make more sense to keep them?

BlackHoleFox commented 7 months ago

but would be needed if Heynote were to be distributed on Apple's app store, maybe it would make more sense to keep them?

To the best of my knowledge you will need a dedicated entitlements file for Mac App Store distribution, so these removed entitlements would go there instead. This is because you need the com.apple.security.app-sandbox key there, yet that is incompatible with "regular" Electron builds.

heyman commented 7 months ago

To the best of my knowledge you will need a dedicated entitlements file for Mac App Store distribution, so these removed entitlements would go there instead. This is because you need the com.apple.security.app-sandbox key there, yet that is incompatible with "regular" Electron builds.

I see! I have no plans distributing Heynote through Apple's app store anyway, so I guess there's no point keeping them :). I tested out a build from this branch and everything worked as far as I could tell.

heyman commented 7 months ago

Thanks!