-
Notifications
You must be signed in to change notification settings - Fork 234
chore(build): notarize dmg COMPASS-7489 #5354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
debug('macnotary result:', macnotaryResult.stdout, macnotaryResult.stderr); | ||
debug('ls', (await execFile('ls', ['-lh'], { cwd: path.dirname(src), encoding: 'utf8' })).stdout); | ||
|
||
// Step:3 - clean up. remove existing src, unzip signedArchive to src, remove signedArchive and unsignedArchive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
q: do you think we need to be concerned about clean up resources (step 3 here) if step 1/step 2 fails? as it's written, if anything throws (including any step in the cleanup), we won't clean up any temporary files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if for some reason any step here fails, the whole build process will fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a big deal, but since is not a big effort, it may be nice to move the removal calls in a finally block.
// eslint-disable-next-line strict | ||
'use strict'; | ||
const chalk = require('chalk'); | ||
const childProcess = require('child_process'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice seeing some line of code leaving this file! :)
Description
Checklist
Motivation and Context
Open Questions
Dependents
Types of changes