mirror of
https://github.com/atom/atom.git
synced 2026-01-27 15:58:00 -05:00
Move using yargs up the call stack
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
// Needed so we can require src/module-cache.coffee during generateModuleCache
|
||||
require('coffee-script/register')
|
||||
|
||||
const argv = require('yargs').argv
|
||||
const cleanOutputDirectory = require('./lib/clean-output-directory')
|
||||
const codeSign = require('./lib/code-sign')
|
||||
const copyAssets = require('./lib/copy-assets')
|
||||
@@ -31,4 +32,10 @@ generateMetadata()
|
||||
writeFingerprint()
|
||||
dumpSymbols()
|
||||
.then(packageApplication)
|
||||
.then(codeSign)
|
||||
.then(packagedAppPath => {
|
||||
if (argv.codeSign) {
|
||||
codeSign(packagedAppPath)
|
||||
} else {
|
||||
console.log('Skipping code-signing. Specify --code-sign option to perform code-signing...')
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
const argv = require('yargs').argv
|
||||
const childProcess = require('child_process')
|
||||
|
||||
module.exports = function (packagedAppPath) {
|
||||
if (!argv.codeSign) {
|
||||
console.log('Skipping code-signing. Specify --code-sign option to perform code-signing...')
|
||||
return
|
||||
}
|
||||
|
||||
console.log(`Unlocking keychain ${process.env.ATOM_MAC_CODE_SIGNING_KEYCHAIN}`)
|
||||
childProcess.spawnSync('security', [
|
||||
'unlock-keychain',
|
||||
|
||||
Reference in New Issue
Block a user