mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-01 20:19:58 -06:00
* try codesign on mac circle * run mac code sign setup as sudo * check env variables * pass org context to command * update shell command * hmm does shell need to login * add FASTLANE_LANE * fix log messages in build * DEBUG code sign * try importing profile first * use sign shell script inline * exit if importing profile fails * unlock keychain * try creating custom keychain and using it * more unlocking * try using -T * append new keychain to the list * try mac executor 10.1.0 * skip node version check * set keychain name to use for signing * remove passing name of the keychain * more comments * use env variables directly to code sign on mac * use electron-builder to sign mac app * try disabling publishing by electron-builder * try testing Mac binary against kitchensink * wait on the right job * run on mac-sign-2 branch * remove buildkite pipeline * remove old commands * darwin platform * workflows via templates * inherit stdio when calling codesign * build binary for this branch * actually build an app, dah * add note about code sign in PR * remove FASTLANE env variable * enable linux builds and remove current branch
29 lines
557 B
JavaScript
29 lines
557 B
JavaScript
/* eslint-disable no-console */
|
|
require('@packages/coffee/register')
|
|
|
|
const command = process.argv[2]
|
|
|
|
if (!command) {
|
|
console.error('Missing deploy command ⛔️')
|
|
process.exit(1)
|
|
}
|
|
|
|
const commands = require('./binary/index')
|
|
const fn = commands[command]
|
|
|
|
if (!fn) {
|
|
console.error('Invalid deploy command %s 🚫', command)
|
|
}
|
|
|
|
// TODO allow passing CLI arguments to each command
|
|
|
|
fn()
|
|
.then(() => {
|
|
return console.log('✅ %s completed', command)
|
|
})
|
|
.catch((err) => {
|
|
console.error('🔥 deploy error')
|
|
console.error(err)
|
|
process.exit(1)
|
|
})
|