1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 14:12:10 +02:00

Sign the stand-alone debugger on Mac

The mac signing has to happen between materialize-products and
archive-products goals. Because we only want to do it when the
production profile is enabled (eclipse.org server), we have to duplicate
some xml to fit the macsigner between the two. I did extract some
variables in order to make the duplication less error prone.

Change-Id: I523c287c0e1dff15026e1007fa2831af6d14003a
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
This commit is contained in:
Marc-Andre Laperle 2016-05-27 01:24:29 -04:00
parent 39007977fa
commit e18d408cb3
2 changed files with 60 additions and 3 deletions

View file

@ -19,6 +19,8 @@
<properties> <properties>
<productId>org.eclipse.cdt.debug.application.product</productId> <productId>org.eclipse.cdt.debug.application.product</productId>
<maven.build.timestamp.format>yyyyMMdd-HHmm</maven.build.timestamp.format> <maven.build.timestamp.format>yyyyMMdd-HHmm</maven.build.timestamp.format>
<archiveFileName>cdt-stand-alone-debugger-${unqualifiedVersion}-${build.timestamp}</archiveFileName>
<rootFolder>cdt-stand-alone-debugger</rootFolder>
</properties> </properties>
<build> <build>
@ -42,6 +44,7 @@
<configuration> <configuration>
<formats> <formats>
<linux>tar.gz</linux> <linux>tar.gz</linux>
<macosx>tar.gz</macosx>
</formats> </formats>
</configuration> </configuration>
</execution> </execution>
@ -49,9 +52,9 @@
<configuration> <configuration>
<products> <products>
<product> <product>
<archiveFileName>cdt-stand-alone-debugger-${unqualifiedVersion}-${build.timestamp}</archiveFileName> <archiveFileName>${archiveFileName}</archiveFileName>
<id>${productId}</id> <id>${productId}</id>
<rootFolder>cdt-stand-alone-debugger</rootFolder> <rootFolder>${rootFolder}</rootFolder>
</product> </product>
</products> </products>
<source>repository</source> <source>repository</source>
@ -106,6 +109,59 @@
</properties> </properties>
<build> <build>
<plugins> <plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>materialize-products</id>
<goals>
<goal>materialize-products</goal>
</goals>
</execution>
<execution>
<id>archive-products</id>
<phase>pre-integration-test</phase>
<goals>
<goal>archive-products</goal>
</goals>
<configuration>
<formats>
<linux>tar.gz</linux>
<macosx>tar.gz</macosx>
</formats>
</configuration>
</execution>
</executions>
<configuration>
<products>
<product>
<archiveFileName>${archiveFileName}</archiveFileName>
<id>${productId}</id>
<rootFolder>${rootFolder}</rootFolder>
</product>
</products>
<source>repository</source>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.cbi.maven.plugins</groupId>
<artifactId>eclipse-macsigner-plugin</artifactId>
<version>${cbi-plugins.version}</version>
<executions>
<execution>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<signFiles>
<signFile>${project.build.directory}/products/${productId}/macosx/cocoa/x86_64/${rootFolder}.app</signFile>
</signFiles>
</configuration>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<artifactId>maven-antrun-plugin</artifactId> <artifactId>maven-antrun-plugin</artifactId>
<executions> <executions>

View file

@ -17,6 +17,7 @@
<properties> <properties>
<tycho-version>0.25.0</tycho-version> <tycho-version>0.25.0</tycho-version>
<tycho-extras-version>0.25.0</tycho-extras-version> <tycho-extras-version>0.25.0</tycho-extras-version>
<cbi-plugins.version>1.1.3</cbi-plugins.version>
<sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin> <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
<cdt-site>http://hudson.eclipse.org/cdt/job/cdt-master/lastSuccessfulBuild/artifact/releng/org.eclipse.cdt.repo/target/repository</cdt-site> <cdt-site>http://hudson.eclipse.org/cdt/job/cdt-master/lastSuccessfulBuild/artifact/releng/org.eclipse.cdt.repo/target/repository</cdt-site>
<repo-path>tools/cdt/builds/master/nightly</repo-path> <repo-path>tools/cdt/builds/master/nightly</repo-path>
@ -311,7 +312,7 @@
<plugin> <plugin>
<groupId>org.eclipse.cbi.maven.plugins</groupId> <groupId>org.eclipse.cbi.maven.plugins</groupId>
<artifactId>eclipse-jarsigner-plugin</artifactId> <artifactId>eclipse-jarsigner-plugin</artifactId>
<version>1.1.2</version> <version>${cbi-plugins.version}</version>
<executions> <executions>
<execution> <execution>
<id>sign</id> <id>sign</id>