2020-12-30 22:19:12 +01:00
|
|
|
exports.default = async function(configuration) {
|
2020-12-31 01:01:55 +01:00
|
|
|
console.log(`config:\n${JSON.stringify(configuration, null, 4)}`)
|
2020-12-30 22:19:12 +01:00
|
|
|
|
|
|
|
require("child_process").execSync(
|
2020-12-31 01:19:28 +01:00
|
|
|
`azuresigntool sign \
|
2020-12-31 16:49:28 +01:00
|
|
|
-kvu "${process.env.SigningVaultURL}" \
|
|
|
|
-kvi "${process.env.SigningClientId}" \
|
|
|
|
-kvs "${process.env.SigningClientSecret}" \
|
|
|
|
-kvc "${process.env.SigningCertName}" \
|
|
|
|
-tr http://timestamp.digicert.com \
|
|
|
|
${configuration.path}`,
|
2020-12-30 22:19:12 +01:00
|
|
|
{
|
|
|
|
stdio: "inherit"
|
|
|
|
}
|
|
|
|
);
|
|
|
|
};
|