Skip to content

Commit

Permalink
Update the actions
Browse files Browse the repository at this point in the history
  • Loading branch information
chunfantasy committed Jun 4, 2024
1 parent 41eacf5 commit 650ab37
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions build/winSign.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,21 @@
* SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
*/

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

exports.default = configuration => {
console.log('Start code signing');
const keypairAlias = process.env.NORDIC_SM_KEYPAIR_ALIAS;

console.log(`Configuration path ${configuration.path}`);
console.log(`Env variables ${JSON.stringify(process.env)}`);
console.log(`Env variables ${process.env.NORDIC_SM_KEYPAIR_ALIAS}`);
console.log(`Env variables ${keypairAlias}`);
if (configuration.path) {
exec(
const result = execSync(
`smctl sign --keypair-alias=${keypairAlias} --input "${String(
configuration.path
)}"`,
error => {
console.log(error);
}
)}"`
);
console.log(`Signing result ${result}`);
}
};

0 comments on commit 650ab37

Please sign in to comment.