Signing Mac apps requires that you are using a certificate issued by Apple and the only way to sign an executable is with XCode. You're out of luck if you have to use a Linux build server. You'll need to run a build agent/runner on OSX.
As far as Linux, I don't know if I've seen a signed shell script. Signing an executable for Linux goes against the idea of FOSS. Linux programs normally provide a SHA1 or MD5 hash for the user to verify the executable with.
I need my app can sign as an identified developer, not an unknown source or an unidentified developer, may be I need a lot of research for this issue.
Thanks for your helping.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.