// Building the installer.
File installer = getInstallerFile(targetSpecification);
buildInstaller(targetSpecification, directory, installer);
// Signing the installer.
FileSigner signer = getSigner(installer, false);
if (signer != null) {
project.logInfo("Signing the installer '%s'", installer);
signer.sign(installer);
} else
project.logWarning("No signers available to sign '%s'", installer);
}