mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-05 05:59:49 -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
35 lines
1.1 KiB
JavaScript
35 lines
1.1 KiB
JavaScript
// TODO make this check a 3rd party little tool
|
|
|
|
// on CircleCI Mac machine, we need to use on of the laer executors
|
|
// that already has Node 10 / 11
|
|
const isMac = () => {
|
|
return process.platform === 'darwin'
|
|
}
|
|
|
|
if (isMac()) {
|
|
// eslint-disable-next-line no-console
|
|
console.log('Skipping Node version check on Mac')
|
|
} else {
|
|
// we want to ensure we are building using the same major version
|
|
// as the one specified in ../.node-version file
|
|
const read = require('fs').readFileSync
|
|
const join = require('path').join
|
|
|
|
const nodeVersionNeededString = read(
|
|
join(__dirname, '..', '.node-version'),
|
|
'utf8'
|
|
)
|
|
const nodeVersionNeeded = nodeVersionNeededString.split('.')
|
|
|
|
const nodeVersion = process.versions.node.split('.')
|
|
|
|
// check just major version for now
|
|
if (nodeVersionNeeded[0] !== nodeVersion[0]) {
|
|
/* eslint-disable no-console */
|
|
console.error('🛑 .node-version specified %s', nodeVersionNeededString)
|
|
console.error('but current Node is %s', process.versions.node)
|
|
/* eslint-enable no-console */
|
|
process.exit(1)
|
|
}
|
|
}
|