This discussion is archived
5 Replies Latest reply: Nov 27, 2012 7:24 AM by edward17 RSS

Code Signing for MacOS 10.8+

edward17 Newbie
Currently Being Moderated
Anyone have a sample build setup for signing the .app file before creating the DMG? How to make this part of the build process?

I have an Apple developer id, but wondering how to integrate signing in the JavaFX build process (native bundles)
  • 1. Re: Code Signing for MacOS 10.8+
    svanimpe Newbie
    Currently Being Moderated
    Edward,

    These talks cover that topic:

    https://oracleus.activeevents.com/connect/sessionDetail.ww?SESSION_ID=7488
    https://oracleus.activeevents.com/connect/sessionDetail.ww?SESSION_ID=8224
  • 2. Re: Code Signing for MacOS 10.8+
    edward17 Newbie
    Currently Being Moderated
    Very helpful thank you. I learned a lot, esp about building for the Mac Store, which I hope to do.

    I was hoping for some examples from someone who integrated the signing into the build process. I am unclear from the video presentation how to take My.app, sign it, then generate a DMG from it., especially as part of the build process.
  • 3. Re: Code Signing for MacOS 10.8+
    ytw Explorer
    Currently Being Moderated
    I have something like this which gives me a signed app bundle (.app). I then manually create a DMG using DMG Canvas.
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    
    <project name="testMacOSXBuild" 
                  default="default" 
               basedir="." 
               xmlns:fx="javafx:com.sun.javafx.tools.ant">
         
        <target name="default">
             
         <fx:jar destfile="${dist.dir}/${out.jar}">
              .
              .
         </fx:jar>
    
         <fx:deploy width="${applet.width}" 
                      height="${applet.height}"     
                      verbose="true"> 
              .
              .
         </fx:deploy>
             
             <!-- code signing. -->
             <exec executable="/bin/bash">
                  <arg value="scripts/mac/code_sign.sh"/>
             </exec>
        </target>
    </project>
  • 4. Re: Code Signing for MacOS 10.8+
    jsmith Guru
    Currently Being Moderated
    building for the Mac Store
    There was an earlier Q&A about building for the Mac App Store which you might find helpful:
    JavaFX apps for Mac App Store

    There is also a related question on StackOverflow:
    http://stackoverflow.com/questions/11083958/javafx-bundling-macos-store

    And a detailed blog post about how somebody placed a non-JavaFX app in the app store:
    http://intransitione.com/blog/take-java-to-app-store/

    And there is a high level overview of how Ensemble was packaged for the app store:
    http://markmail.org/message/o6ozsp6pxdqnmtf7

    I think it's planned to build Mac App Store distributable bundles as part of the javafx packaging work, but there are currently some difficulties and bugs in doing it with JavaFX 2.2.3 which will hopefully be fixed for a future 2.2.x release.
  • 5. Re: Code Signing for MacOS 10.8+
    edward17 Newbie
    Currently Being Moderated
    Yeah, I watched some of the App Store video - many steps. I'll head in that direction, but for right now I just need to sign for OS X 8

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points