How to Sign a .jar file with my Apple Developer ID

僤鯓⒐⒋嵵緔 提交于 2019-12-23 18:20:31

问题


I have a java executable jar file that I need to be signed with my Apple Developer ID. I don’t intend to distribute it through the app store. I will be distributing the app directly to customers through my website. I’m not intending to bypass Gatekeeper. Signing the app with my developer ID is what will satisfy Gatekeeper when customers install the app and thus avoid a security prompt that I am an "Unidentified Developer".

Any help would be greatly appreciated


回答1:


From apple.stackexchange.com:

Signed binary being warned as signed by unknown developer on OSx

It appears the security settings of the computer in System Preferences → Security & Privacy are set to Allow apps downloaded from: App Store as shown in the error message.

Regardless of how your application is signed, if it's not distributed through the App Store, Gatekeeper will show that message. To allow all other signed apps, the setting needs to be changed to App Store and identified developers

See also:

How to sign Java applet with Apple Developer ID

Oh, there is no way to do it =( Java applets cannot participate in the Developer ID program. The Apple's answer is here https://stackoverflow.com/a/12210534/1068878.




回答2:


Use appbundler tools from oracle sdk (if you are using JDK version 8 or+, else download it manually). I could do similar stuff by following steps mentioned here.



来源:https://stackoverflow.com/questions/53313548/how-to-sign-a-jar-file-with-my-apple-developer-id

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!