Skip to content

Commit

Permalink
Update signing.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed Oct 22, 2023
1 parent b4fa7fc commit 3ff9a82
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion builders/org.python.pydev.build/build_cmd.bat
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ python %BUILD_DIR%/Pydev/plugins/org.python.pydev.core/pysrc/build_tools/build.p
python %BUILD_DIR%/Pydev/plugins/org.python.pydev.core/pysrc/build_tools/build_binaries_windows.py

@echo to clean after the build: -DcleanAfter.set=true
mvn install
mvn install -Dsign-release=true



Expand Down
26 changes: 17 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -285,27 +285,35 @@
</build>
<profiles>
<profile>
<!-- We only sign the jars when the keystore has been provided in the environment -->
<!-- References to signing with hardware-based token -->
<!-- https://docs.digicert.com/en/software-trust-manager/ci-cd-integrations/script-integrations/maven-integration-with-pkcs11.html -->
<!-- https://stackoverflow.com/questions/44003975/ev-code-signing-extremely-slow/54928402#54928402 -->
<!-- https://stackoverflow.com/questions/43594938/maven-jnlp-creation-with-ev-code-signing -->
<!-- https://knowledge.digicert.com/tutorials/sign-java-jar-files-with-a-hardware-token-based-code-signing-certificate-in-windows.html -->
<!-- https://support.globalsign.com/code-signing/ev-code-signing-java-token-based -->
<id>sign-jars</id>
<activation>
<file>
<exists>${env.SIGN_KEYSTORE}</exists>
</file>
<property>
<!-- To use: mvn -Dsign-release=true -->
<name>sign-release</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jarsigner-plugin</artifactId>
<version>1.4</version>
<version>3.0.0</version>
<configuration>
<!-- Note: to sign with a .pfx the alias can be seen with keytool -list -v -storetype pkcs12 -keystore code_sign.pfx -->
<keystore>${env.SIGN_KEYSTORE}</keystore>
<storepass>${env.SIGN_STOREPASS}</storepass>
<alias>${env.SIGN_ALIAS}</alias>
<keypass>${env.SIGN_KEYPASS}</keypass>
<storetype>${env.SIGN_STORETYPE}</storetype>
<tsa>${env.SIGN_TSA}</tsa>
<providerClass>${env.SIGN_PROVIDER_CLASS}</providerClass>
<providerArg>${env.SIGN_PROVIDER_ARG}</providerArg>
<storepass>${env.SIGN_STOREPASS}</storepass>
<keypass>${env.SIGN_KEYPASS}</keypass>
<alias>${env.SIGN_ALIAS}</alias>
<verbose>true</verbose>
</configuration>
<executions>
Expand Down

0 comments on commit 3ff9a82

Please sign in to comment.