mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-25 12:15:18 +01:00
28de9439be
* [deps] Autofill: Update prettier to v3 * prettier formatting updates --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jonathan Prusik <jprusik@classynemesis.com>
23 lines
827 B
JavaScript
23 lines
827 B
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires, no-console */
|
|
|
|
exports.default = async function (configuration) {
|
|
if (parseInt(process.env.ELECTRON_BUILDER_SIGN) === 1 && configuration.path.slice(-4) == ".exe") {
|
|
console.log(`[*] Signing file: ${configuration.path}`);
|
|
require("child_process").execSync(
|
|
`azuresigntool sign -v ` +
|
|
`-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",
|
|
},
|
|
);
|
|
}
|
|
};
|