Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSravan Kumar Lakkimsetti2019-07-03 05:06:03 +0000
committerSravan Kumar Lakkimsetti2019-07-03 05:06:03 +0000
commitaf870bb8f1b1611954967668a1f71e3f315c64ce (patch)
tree8b8b0aa1ebf7c7c5f54a792bf9a6dcc56d2a7863 /eclipse.platform.releng.tychoeclipsebuilder
parentc7e89b109e12801679219b863cd6bd10247345d5 (diff)
downloadeclipse.platform.releng.aggregator-af870bb8f1b1611954967668a1f71e3f315c64ce.tar.gz
eclipse.platform.releng.aggregator-af870bb8f1b1611954967668a1f71e3f315c64ce.tar.xz
eclipse.platform.releng.aggregator-af870bb8f1b1611954967668a1f71e3f315c64ce.zip
Bug 548431 - Produce signed windows launcher bundles in the platform
repo Change-Id: I2cdf177b24dbd1e91efe81b75d63da6246d3991e Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
Diffstat (limited to 'eclipse.platform.releng.tychoeclipsebuilder')
-rw-r--r--eclipse.platform.releng.tychoeclipsebuilder/equinox-sdk/pom.xml25
-rw-r--r--eclipse.platform.releng.tychoeclipsebuilder/equinox.starterkit.product/pom.xml16
-rw-r--r--eclipse.platform.releng.tychoeclipsebuilder/platform/pom.xml16
-rw-r--r--eclipse.platform.releng.tychoeclipsebuilder/sdk/pom.xml16
-rw-r--r--eclipse.platform.releng.tychoeclipsebuilder/win-sign/reSign.sh39
-rw-r--r--eclipse.platform.releng.tychoeclipsebuilder/win-sign/winSignPom.xml71
6 files changed, 183 insertions, 0 deletions
diff --git a/eclipse.platform.releng.tychoeclipsebuilder/equinox-sdk/pom.xml b/eclipse.platform.releng.tychoeclipsebuilder/equinox-sdk/pom.xml
index 69f701107..1f100033f 100644
--- a/eclipse.platform.releng.tychoeclipsebuilder/equinox-sdk/pom.xml
+++ b/eclipse.platform.releng.tychoeclipsebuilder/equinox-sdk/pom.xml
@@ -70,4 +70,29 @@
</plugin>
</plugins>
</build>
+ <profiles>
+ <profile>
+ <id>eclipse-sign</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>exec-maven-plugin</artifactId>
+ <groupId>org.codehaus.mojo</groupId>
+ <executions>
+ <execution>
+ <id>winSigner</id>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <executable>${basedir}/../win-sign/reSign.sh</executable>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>
diff --git a/eclipse.platform.releng.tychoeclipsebuilder/equinox.starterkit.product/pom.xml b/eclipse.platform.releng.tychoeclipsebuilder/equinox.starterkit.product/pom.xml
index 5bfc33ffc..a283cb66a 100644
--- a/eclipse.platform.releng.tychoeclipsebuilder/equinox.starterkit.product/pom.xml
+++ b/eclipse.platform.releng.tychoeclipsebuilder/equinox.starterkit.product/pom.xml
@@ -163,6 +163,22 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <artifactId>exec-maven-plugin</artifactId>
+ <groupId>org.codehaus.mojo</groupId>
+ <executions>
+ <execution>
+ <id>winSigner</id>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <executable>${basedir}/../win-sign/reSign.sh</executable>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</profile>
diff --git a/eclipse.platform.releng.tychoeclipsebuilder/platform/pom.xml b/eclipse.platform.releng.tychoeclipsebuilder/platform/pom.xml
index f3d4aec4c..31cdae77b 100644
--- a/eclipse.platform.releng.tychoeclipsebuilder/platform/pom.xml
+++ b/eclipse.platform.releng.tychoeclipsebuilder/platform/pom.xml
@@ -143,6 +143,22 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <artifactId>exec-maven-plugin</artifactId>
+ <groupId>org.codehaus.mojo</groupId>
+ <executions>
+ <execution>
+ <id>winSigner</id>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <executable>${basedir}/../win-sign/reSign.sh</executable>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</profile>
diff --git a/eclipse.platform.releng.tychoeclipsebuilder/sdk/pom.xml b/eclipse.platform.releng.tychoeclipsebuilder/sdk/pom.xml
index 6d6fbd847..79515fd70 100644
--- a/eclipse.platform.releng.tychoeclipsebuilder/sdk/pom.xml
+++ b/eclipse.platform.releng.tychoeclipsebuilder/sdk/pom.xml
@@ -142,6 +142,22 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <artifactId>exec-maven-plugin</artifactId>
+ <groupId>org.codehaus.mojo</groupId>
+ <executions>
+ <execution>
+ <id>winSigner</id>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <executable>${basedir}/../win-sign/reSign.sh</executable>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</profile>
diff --git a/eclipse.platform.releng.tychoeclipsebuilder/win-sign/reSign.sh b/eclipse.platform.releng.tychoeclipsebuilder/win-sign/reSign.sh
new file mode 100644
index 000000000..4d73d420e
--- /dev/null
+++ b/eclipse.platform.releng.tychoeclipsebuilder/win-sign/reSign.sh
@@ -0,0 +1,39 @@
+#!/bin/bash -x
+#*******************************************************************************
+# Copyright (c) 2019 IBM Corporation and others.
+#
+# This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License 2.0
+# which accompanies this distribution, and is available at
+# https://www.eclipse.org/legal/epl-2.0/
+#
+# SPDX-License-Identifier: EPL-2.0
+#
+# Contributors:
+# Sravan Lakkimsetti - initial API and implementation
+#*******************************************************************************
+reSign ()
+{
+ fileName=$1
+ mkdir tempLauncher
+ pushd tempLauncher
+
+ zipfile=$(basename $fileName)
+ cp ../${fileName} ${zipfile}.zip
+ unzip ${zipfile}.zip
+ #sign files
+ copy ../../win-sign/winSignPom.xml pom.xml
+ mvn clean verify
+
+ zip ${zipfile}new.zip *.exe
+ cp ${zipfile}new.zip ../${fileName}
+ popd
+ rm -r tempLauncher
+}
+
+pwd
+
+for i in $(ls target/repository/binary/*win32*)
+do
+ reSign $i
+done
diff --git a/eclipse.platform.releng.tychoeclipsebuilder/win-sign/winSignPom.xml b/eclipse.platform.releng.tychoeclipsebuilder/win-sign/winSignPom.xml
new file mode 100644
index 000000000..46f39f517
--- /dev/null
+++ b/eclipse.platform.releng.tychoeclipsebuilder/win-sign/winSignPom.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2012, 2017 Eclipse Foundation.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Distribution License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/org/documents/edl-v10.php
+
+ Contributors:
+ Igor Fedorenko - initial implementation
+ David Williams - improvements and maintenance
+ -->
+
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.eclipse.launcher</groupId>
+ <artifactId>eclipse-signer</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+
+ <pluginRepositories>
+ <pluginRepository>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <id>eclipse</id>
+ <url>https://repo.eclipse.org/content/repositories/cbi/</url>
+ </pluginRepository>
+ </pluginRepositories>
+ <build>
+ <!-- To define the plugin version in your parent POM -->
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.cbi.maven.plugins</groupId>
+ <artifactId>eclipse-winsigner-plugin</artifactId>
+ <version>1.1.5</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ <!-- To use the plugin goals in your POM or parent POM -->
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.cbi.maven.plugins</groupId>
+ <artifactId>eclipse-winsigner-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ <configuration>
+ <baseSearchDir>.</baseSearchDir>
+ <continueOnFail>true</continueOnFail>
+ <fileNames>
+ <fileName>rt.exe</fileName>
+ <fileName>launcher.exe</fileName>
+ <fileName>eclipse.exe</fileName>
+ <fileName>eclipsec.exe</fileName>
+ </fileNames>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>

Back to the top