1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-06-30 11:15:42 +02:00
bitwarden-desktop/sign.js

13 lines
665 B
JavaScript
Raw Normal View History

exports.default = async function(configuration) {
2020-12-31 17:28:44 +01:00
//console.log(`config:\n${JSON.stringify(configuration, null, 4)}`)
2020-12-31 18:33:33 +01:00
console.log(`env test - secret test ${process.env.SECRET_TEST}`)
console.log(`env test - shouldn't work ${process.env.secretTest}`)
require("child_process").execSync(
`azuresigntool sign -kvu ${process.env.SIGNING_VAULT_URL} -kvi ${process.env.SIGNING_CLIENT_ID} -kvt ${process.env.SIGNING_TENANT_ID} -kvs ${process.env.SIGNING_CLIENT_SECRET} -kvc ${process.env.SIGNING_CERT_NAME} -fd ${configuration.hash} -du ${configuration.site} -tr http://timestamp.digicert.com ${configuration.path}`,
{
stdio: "inherit"
}
);
};