Rename installed application to "Corda DemoBench". (#547)

* CORDA-368: Install DemoBench as "Corda DemoBench".
* CORDA-368: Fix RPM packaging.
* CORDA-368: Update changelog and release notes for DemoBench's new installation name.
This commit is contained in:
Chris Rankin 2017-04-19 10:39:32 +01:00 committed by GitHub
parent 022b38b7dc
commit 941bc9be5b
12 changed files with 28 additions and 26 deletions

View File

@ -12,6 +12,8 @@ UNRELEASED
* Added ``CompositeSignature`` and ``CompositeSignatureData`` as part of enabling ``java.security`` classes to work with * Added ``CompositeSignature`` and ``CompositeSignatureData`` as part of enabling ``java.security`` classes to work with
composite keys and signatures. composite keys and signatures.
* DemoBench is now installed as ``Corda DemoBench`` instead of ``DemoBench``.
Milestone 10.0 Milestone 10.0
-------------- --------------

View File

@ -12,6 +12,8 @@ composite key signatures. This will form the underlying basis of future work to
formats to enable interoperability with other systems, as well as enabling the use of composite signatures on X.509 formats to enable interoperability with other systems, as well as enabling the use of composite signatures on X.509
certificates to prove association between transaction keys and identity keys. certificates to prove association between transaction keys and identity keys.
We have updated DemoBench so that it is installed as "Corda DemoBench" for both Windows and MacOSX. The original version was installed as just "DemoBench", and so will not be overwritten automatically by the new version.
Milestone 10 Milestone 10
------------ ------------

View File

@ -169,7 +169,7 @@ task javapackage(dependsOn: 'distZip') {
) )
ant.deploy(nativeBundles: packageType, outdir: pkg_outDir, outfile: 'DemoBench', verbose: 'true') { ant.deploy(nativeBundles: packageType, outdir: pkg_outDir, outfile: 'DemoBench', verbose: 'true') {
application(name: 'DemoBench', version: pkg_version, mainClass: mainClassName) application(name: 'Corda DemoBench', version: pkg_version, mainClass: mainClassName)
info(title: 'Corda DemoBench', vendor: 'R3', description: 'A sales and educational tool for demonstrating Corda.') info(title: 'Corda DemoBench', vendor: 'R3', description: 'A sales and educational tool for demonstrating Corda.')
resources { resources {
fileset(dir: "$dist_source/lib", type: 'jar') { fileset(dir: "$dist_source/lib", type: 'jar') {
@ -190,9 +190,6 @@ task javapackage(dependsOn: 'distZip') {
} }
} }
// This is specific to the MacOSX packager.
bundleArgument(arg: 'mac.CFBundleName', value: 'Corda DemoBench')
platform { platform {
property(name: 'java.util.logging.config.class', value: 'net.corda.demobench.config.LoggingConfig') property(name: 'java.util.logging.config.class', value: 'net.corda.demobench.config.LoggingConfig')
property(name: 'org.jboss.logging.provider', value: 'slf4j') property(name: 'org.jboss.logging.provider', value: 'slf4j')

View File

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -1,12 +1,13 @@
Summary: DemoBench Summary: Corda DemoBench
Name: demobench Name: corda-demobench
Version: @pkg_version@ Version: @pkg_version@
Release: 1 Release: 1
License: Unknown License: Unknown
Vendor: Unknown Vendor: Unknown
Prefix: /opt Prefix: /opt
Provides: demobench Provides: corda-demobench
Requires: ld-linux.so.2 libX11.so.6 libXext.so.6 libXi.so.6 libXrender.so.1 libXtst.so.6 libasound.so.2 libc.so.6 libdl.so.2 libgcc_s.so.1 libm.so.6 libpthread.so.0 libthread_db.so.1 Requires: ld-linux.so.2 libX11.so.6 libXext.so.6 libXi.so.6 libXrender.so.1 libXtst.so.6 libasound.so.2 libc.so.6 libdl.so.2 libgcc_s.so.1 libm.so.6 libpthread.so.0 libthread_db.so.1
Obsoletes: demobench
Autoprov: 0 Autoprov: 0
Autoreq: 0 Autoreq: 0
@ -21,7 +22,7 @@ Autoreq: 0
%define _javaHome %{getenv:JAVA_HOME} %define _javaHome %{getenv:JAVA_HOME}
%description %description
DemoBench Corda DemoBench
%prep %prep
@ -30,40 +31,40 @@ DemoBench
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
mkdir -p %{buildroot}/opt mkdir -p %{buildroot}/opt
cp -r %{_sourcedir}/DemoBench %{buildroot}/opt cp -r %{_sourcedir}/CordaDemoBench %{buildroot}/opt
mkdir -p %{buildroot}/opt/DemoBench/runtime/bin mkdir -p %{buildroot}/opt/CordaDemoBench/runtime/bin
cp %{_javaHome}/bin/java %{buildroot}/opt/DemoBench/runtime/bin cp %{_javaHome}/bin/java %{buildroot}/opt/CordaDemoBench/runtime/bin
%files %files
/opt/DemoBench /opt/CordaDemoBench
%post %post
xdg-desktop-menu install --novendor /opt/DemoBench/DemoBench.desktop xdg-desktop-menu install --novendor /opt/CordaDemoBench/CordaDemoBench.desktop
if [ "false" = "true" ]; then if [ "false" = "true" ]; then
cp /opt/DemoBench/demobench.init /etc/init.d/demobench cp /opt/CordaDemoBench/corda-demobench.init /etc/init.d/corda-demobench
if [ -x "/etc/init.d/demobench" ]; then if [ -x "/etc/init.d/corda-demobench" ]; then
/sbin/chkconfig --add demobench /sbin/chkconfig --add corda-demobench
if [ "false" = "true" ]; then if [ "false" = "true" ]; then
/etc/init.d/demobench start /etc/init.d/corda-demobench start
fi fi
fi fi
fi fi
%preun %preun
xdg-desktop-menu uninstall --novendor /opt/DemoBench/DemoBench.desktop xdg-desktop-menu uninstall --novendor /opt/CordaDemoBench/CordaDemoBench.desktop
if [ "false" = "true" ]; then if [ "false" = "true" ]; then
if [ -x "/etc/init.d/demobench" ]; then if [ -x "/etc/init.d/corda-demobench" ]; then
if [ "true" = "true" ]; then if [ "true" = "true" ]; then
/etc/init.d/demobench stop /etc/init.d/corda-demobench stop
fi fi
/sbin/chkconfig --del demobench /sbin/chkconfig --del corda-demobench
rm -f /etc/init.d/demobench rm -f /etc/init.d/corda-demobench
fi fi
fi fi

View File

@ -9,14 +9,14 @@ function signApplication() {
# Resign the embedded JRE because we have included "bin/java" # Resign the embedded JRE because we have included "bin/java"
# after javapackager had already signed the JRE installation. # after javapackager had already signed the JRE installation.
if ! (codesign --force --sign "$IDENTITY" --verbose $APPDIR/Contents/PlugIns/Java.runtime); then if ! (codesign --force --sign "$IDENTITY" --verbose "$APPDIR/Contents/PlugIns/Java.runtime"); then
echo "**** Failed to resign the embedded JVM" echo "**** Failed to resign the embedded JVM"
return 1 return 1
fi fi
} }
# Switch to folder containing application. # Switch to folder containing application.
cd ../images/image-*/DemoBench.app cd ../images/image-*/Corda\ DemoBench.app
INSTALL_HOME=Contents/PlugIns/Java.runtime/Contents/Home/jre/bin INSTALL_HOME=Contents/PlugIns/Java.runtime/Contents/Home/jre/bin
if (mkdir -p $INSTALL_HOME); then if (mkdir -p $INSTALL_HOME); then
@ -27,7 +27,7 @@ fi
cd .. cd ..
# Sign the application using a 'Developer ID Application' key on our keychain. # Sign the application using a 'Developer ID Application' key on our keychain.
if ! (signApplication DemoBench.app "Developer ID Application: "); then if ! (signApplication "Corda DemoBench.app" "Developer ID Application: "); then
echo "**** Failed to sign the application - ABORT SIGNING" echo "**** Failed to sign the application - ABORT SIGNING"
fi fi

View File

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@ -10,7 +10,7 @@
var oFSO = new ActiveXObject("Scripting.FileSystemObject"); var oFSO = new ActiveXObject("Scripting.FileSystemObject");
var oFolder = oFSO.getFolder("."); var oFolder = oFSO.getFolder(".");
var to = oFolder.path + "\\DemoBench\\runtime\\bin"; var to = oFolder.path + "\\Corda DemoBench\\runtime\\bin";
if (!oFSO.FolderExists(to)) { if (!oFSO.FolderExists(to)) {
oFSO.CreateFolder(to); oFSO.CreateFolder(to);
} }

View File

Before

Width:  |  Height:  |  Size: 326 KiB

After

Width:  |  Height:  |  Size: 326 KiB