Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSravan Kumar Lakkimsetti2019-07-02 05:48:06 -0400
committerSravan Kumar Lakkimsetti2019-07-02 05:52:19 -0400
commit69c1541baa1e4c801e0aa005ed90463aa98072d7 (patch)
treec89f50acaf72375a3111ffdb71ef7f1ad1c7bfe3
parentca9dfd42117728c5bac486764cb19be2ea36374b (diff)
downloadeclipse.platform.releng.aggregator-69c1541baa1e4c801e0aa005ed90463aa98072d7.tar.gz
eclipse.platform.releng.aggregator-69c1541baa1e4c801e0aa005ed90463aa98072d7.tar.xz
eclipse.platform.releng.aggregator-69c1541baa1e4c801e0aa005ed90463aa98072d7.zip
Bug 548431 - Produce signed windows launcher bundles in the platform
repo Change-Id: Id2fa0d98fa0639eae1f00201f11e32101f3ad42a Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
-rw-r--r--eclipse.platform.releng.tychoeclipsebuilder/equinox-sdk/pom.xml26
-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
-rwxr-xr-xeclipse.platform.releng.tychoeclipsebuilder/win-sign/reSign.sh37
-rw-r--r--eclipse.platform.releng.tychoeclipsebuilder/win-sign/winSignPom.xml71
6 files changed, 182 insertions, 0 deletions
diff --git a/eclipse.platform.releng.tychoeclipsebuilder/equinox-sdk/pom.xml b/eclipse.platform.releng.tychoeclipsebuilder/equinox-sdk/pom.xml
index 69f70110..893dbe49 100644
--- a/eclipse.platform.releng.tychoeclipsebuilder/equinox-sdk/pom.xml
+++ b/eclipse.platform.releng.tychoeclipsebuilder/equinox-sdk/pom.xml
@@ -70,4 +70,30 @@
</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>../../win-sign/reSign.sh</executable>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>
</project>
diff --git a/eclipse.platform.releng.tychoeclipsebuilder/equinox.starterkit.product/pom.xml b/eclipse.platform.releng.tychoeclipsebuilder/equinox.starterkit.product/pom.xml
index 5bfc33ff..fe6c5f94 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>../../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 f3d4aec4..25e8deff 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>../../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 6d6fbd84..f13054e3 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>../../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 100755
index 00000000..a46b59a1
--- /dev/null
+++ b/eclipse.platform.releng.tychoeclipsebuilder/win-sign/reSign.sh
@@ -0,0 +1,37 @@
+#!/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
+}
+
+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 00000000..46f39f51
--- /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