ci: strip linux binaries for release builds (#14991)

This commit is contained in:
John Kleinschmidt 2018-10-09 16:19:05 -04:00 committed by GitHub
parent d678d9ee75
commit 1cf00274ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 97 additions and 37 deletions

View file

@ -62,14 +62,8 @@ async function circleCIcall (buildUrl, targetBranch, job, options) {
}
}
if (options.ghRelease) {
buildRequest.build_parameters.ELECTRON_RELEASE = 1
} else {
buildRequest.build_parameters.RUN_RELEASE_BUILD = 'true'
}
if (options.automaticRelease) {
buildRequest.build_parameters.AUTO_RELEASE = 'true'
if (!options.ghRelease) {
buildRequest.build_parameters.UPLOAD_TO_S3 = 1
}
const circleResponse = await makeRequest({
@ -237,13 +231,13 @@ module.exports = runRelease
if (require.main === module) {
const args = require('minimist')(process.argv.slice(2), {
boolean: ['ghRelease', 'automaticRelease', 'armTest']
boolean: ['ghRelease', 'armTest']
})
const targetBranch = args._[0]
if (args._.length < 1) {
console.log(`Trigger CI to build release builds of electron.
Usage: ci-release-build.js [--job=CI_JOB_NAME] [--ci=CircleCI|AppVeyor|VSTS]
[--ghRelease] [--automaticRelease] [--armTest] [--circleBuildNum=xxx] TARGET_BRANCH
[--ghRelease] [--armTest] [--circleBuildNum=xxx] TARGET_BRANCH
`)
process.exit(0)
}