mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 06:02:11 +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:
parent
39007977fa
commit
e18d408cb3
2 changed files with 60 additions and 3 deletions
|
@ -19,6 +19,8 @@
|
|||
<properties>
|
||||
<productId>org.eclipse.cdt.debug.application.product</productId>
|
||||
<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>
|
||||
|
||||
<build>
|
||||
|
@ -42,6 +44,7 @@
|
|||
<configuration>
|
||||
<formats>
|
||||
<linux>tar.gz</linux>
|
||||
<macosx>tar.gz</macosx>
|
||||
</formats>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
@ -49,9 +52,9 @@
|
|||
<configuration>
|
||||
<products>
|
||||
<product>
|
||||
<archiveFileName>cdt-stand-alone-debugger-${unqualifiedVersion}-${build.timestamp}</archiveFileName>
|
||||
<archiveFileName>${archiveFileName}</archiveFileName>
|
||||
<id>${productId}</id>
|
||||
<rootFolder>cdt-stand-alone-debugger</rootFolder>
|
||||
<rootFolder>${rootFolder}</rootFolder>
|
||||
</product>
|
||||
</products>
|
||||
<source>repository</source>
|
||||
|
@ -106,6 +109,59 @@
|
|||
</properties>
|
||||
<build>
|
||||
<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>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<executions>
|
||||
|
|
3
pom.xml
3
pom.xml
|
@ -17,6 +17,7 @@
|
|||
<properties>
|
||||
<tycho-version>0.25.0</tycho-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>
|
||||
<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>
|
||||
|
@ -311,7 +312,7 @@
|
|||
<plugin>
|
||||
<groupId>org.eclipse.cbi.maven.plugins</groupId>
|
||||
<artifactId>eclipse-jarsigner-plugin</artifactId>
|
||||
<version>1.1.2</version>
|
||||
<version>${cbi-plugins.version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>sign</id>
|
||||
|
|
Loading…
Add table
Reference in a new issue