Skip to content

Commit

Permalink
Add debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
chunfantasy committed Jun 4, 2024
1 parent fc3972c commit 64da7bf
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions build/winSign.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
*/

const { execSync } = require('child_process');
const { exec } = require('child_process');

exports.default = configuration => {
console.log('Start code signing');
Expand All @@ -13,15 +13,13 @@ exports.default = configuration => {
console.log(`Configuration path ${configuration.path}`);
console.log(`Env variables ${JSON.stringify(process.env)}`);
if (configuration.path) {
try {
const result = execSync(
`smctl sign --keypair-alias=${keypairAlias} --input "${String(
configuration.path
)}"`
);
console.log(`Signing result ${result}`);
} catch (error) {
console.log(error);
}
exec(
`smctl sign --keypair-alias=${keypairAlias} --input "${String(
configuration.path
)}"`,
error => {
console.log(error);
}
);
}
};

0 comments on commit 64da7bf

Please sign in to comment.