if you want to make it so you don't have to right click, then select open, you can run sudo spctl --master-disable
sudo spctl --master-disable