mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-28 12:35:40 +01:00
making custom signing command easier to read
This commit is contained in:
parent
078862e41b
commit
902040ec64
15
sign.js
15
sign.js
@ -1,10 +1,15 @@
|
|||||||
exports.default = async function(configuration) {
|
exports.default = async function(configuration) {
|
||||||
//console.log(`config:\n${JSON.stringify(configuration, null, 4)}`)
|
|
||||||
console.log(`env test - secret test ${process.env.SECRET_TEST}`)
|
|
||||||
console.log(`env test - shouldn't work ${process.env.secretTest}`)
|
|
||||||
|
|
||||||
require("child_process").execSync(
|
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}`,
|
`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"
|
stdio: "inherit"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user