[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Tycho and code signing on OS X
|
Hey Valerio!
I guess you mean signing the OSX app with an Apple certificate to make
Mountain Lion and Gatekeeper happy? I do the following in my build
script for the products of the Spring Tool Suite:
(you would need to replace STS.app with the name of your app, of course,
and <YourCompanyHere> with the correct ID of your Apple Developer
certificate that you need from Apple)
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>osx-app-signing</id>
<phase>package</phase>
<configuration>
<skip>${skip.osx.signing}</skip>
<target>
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
<exec executable="codesign">
<arg value="-s"/>
<arg value="Developer ID Application: <YourCompanyHere>"/>
<arg
value="${build.destination.cocoa.x86}/sts-${unqualifiedVersion}.${p2.qualifier}/STS.app"/>
</exec>
<exec executable="codesign">
<arg value="-s"/>
<arg value="Developer ID Application: <YourCompanyHere>"/>
<arg
value="${build.destination.cocoa.x86_64}/sts-${unqualifiedVersion}.${p2.qualifier}/STS.app"/>
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
...
But you need to run this on a OSX machine with the Xcode toolchain
installed and you need to unlock your OSX keychain before.
HTH,
Martin
On 27.09.12 20:38, Valerio Santinelli wrote:
Hello there,
this is my first post on this list and I hope I'm not going to be off-topic.
Hre's the question: has anyone stumbled upon having to code sign an OS X binary (.app) built with Tycho?
Is there a script that can be run from Maven or a plugin for the Maven+Tycho couple?
Thanks!
Valerio Santinelli
Inviato da iPad
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user