Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
Suppress env var error output
Browse files Browse the repository at this point in the history
  • Loading branch information
freespeech4ever committed Mar 22, 2020
1 parent 7c4d82c commit 453f834
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/util.js
Expand Up @@ -393,6 +393,18 @@ const util = {
// TODO(bridiver) - this should move to gn and windows should call signApp like other platforms
signWinBinaries: () => {
// Copy & sign only binaries for widevine sig file generation.
if (config.buildConfig !== 'Release' || config.skip_signing) {
console.log('binary signing is skipped because this is not official build or --skip_signing is used')
return
}

if (process.env.CERT === undefined || process.env.SIGNTOOL_ARGS === undefined) {
//console.log('binary signing is skipped because of missing env vars')
//return
}

console.log('signing win binaries...')

// With this, create_dist doesn't trigger rebuild because original binaries is not modified.
const dir = path.join(config.outputDir, 'signed_binaries')
if (!fs.existsSync(dir))
Expand Down

0 comments on commit 453f834

Please sign in to comment.