Skip to content

Commit

Permalink
fix(build): re-fix notary service invocation (#1185)
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax authored Jan 10, 2022
1 parent eb88170 commit ad1eacd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/build/src/packaging/notary-service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('packaging artifact signing', () => {
'--notary-url', 'http://notary-service.build.10gen.cc:5000/',
'--outputs', 'sig',
'--package-file-suffix', '',
__filename
path.basename(__filename)
],
{
encoding: 'utf8',
Expand Down
3 changes: 2 additions & 1 deletion packages/build/src/packaging/notary-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export async function notarizeArtifact(
encoding: 'utf8',
mode: 0o600
});
console.log('Notarizing file', options.signingKeyName, options.signingComment, file);

try {
spawnSync(options.pythonExecutable, [
Expand All @@ -45,7 +46,7 @@ export async function notarizeArtifact(
'--notary-url', options.serverUrl,
'--outputs', 'sig',
'--package-file-suffix', '',
file
path.basename(file)
], {
cwd: path.dirname(file),
encoding: 'utf8'
Expand Down
2 changes: 1 addition & 1 deletion packages/build/src/run-draft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export async function runDraft(
);

await notarizeArtifact(
tarballFile.path,
downloadedArtifact,
{
signingKeyName: config.notarySigningKeyName || '',
authToken: config.notaryAuthToken || '',
Expand Down

0 comments on commit ad1eacd

Please sign in to comment.