I have a shell script for My Mac M1 with libraries and an icon separately and I wanted to know if I could convert this into an .app file. I already tried to make my own .app executable with appify ( https://github.com/machinebox/appify ) or by building the .app folder myself (*.app/Content/MacOS) but when I share it with someone else, apple tells him that the app is broken and we need to run some commands to make it work again.
The commands that solve the problem, but that I no longer want to type every time are:
- sudo spctl --master-disable
- sudo chmod -R 777 *.app
- xattr -d com.apple.quarantine *.app
- xattr -cr *.app
Could someone help me to resolve this problem?