I have successfully built TeXstudio on my M2 MacBook and I would like to share the binary with other users (because the official releases do not have a binary for Apple Silicon).
The issue is that, after packaging, the app does not open. Reading the crash report, the reason turns out to be:
Termination Reason: Namespace CODESIGNING, Code 2 Invalid Page
For it to work, I had to extract the app to /Applications
and then:
codesign --force --deep --sign - /Applications/texstudio.app
How can I share the .dmg
so that other users can use the app?
Thank you in advance for your help!