crotwell / gradle-macappbundle

A Gradle Plugin to create a Mac OSX .app application and dmg based on the project.
Apache License 2.0
95 stars 33 forks source link

codeSign command line needs to include --deep, or be configurable to allow same. #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Trying to codeSign our app with the following:

jar {
  manifest {
    attributes 'Implementation-Title': 'MyApp.Server',
               'Main-Class': 'com.squareup.myapp.Server'
  }
}

macAppBundle {
  certIdentity="MyApp"
  bundleExecutable = "${->project.name}"
  codeSignCmd='codesign'

  mainClassName = 'com.squareup.myapp.Server'
  bundleJRE = true
  icon = 'resources/bus.icns'
  appName = 'MyApp'
}

codeSign fails, returning 1. The command line executed is:

codesign -s MyApp -f 
/Users/ray/Development/square/comms/socketbus/build/macApp/MhyApp.app

If we run that command line manually and add --deep, the app is signed as 
expected and codesign returns 0

Original issue reported on code.google.com by r...@squareup.com on 30 Jan 2015 at 7:35

GoogleCodeExporter commented 9 years ago

Original comment by crotwell@seis.sc.edu on 2 Feb 2015 at 3:11

GoogleCodeExporter commented 9 years ago
done in 2.1.0

Original comment by crotwell@seis.sc.edu on 16 Mar 2015 at 2:48