use default next-dev-version if not set during Linux binary bui… (#5512)

This commit is contained in:
Gleb Bahmutov
2019-10-29 16:10:59 +01:00
committed by Zach Bloomquist
parent eb078974fe
commit 7be840efca
2 changed files with 6 additions and 1 deletions

View File

@@ -607,7 +607,10 @@ jobs:
- run:
environment:
DEBUG: electron-builder,electron-osx-sign*
command: npm run binary-build -- --platform $PLATFORM --version $NEXT_DEV_VERSION
# if this is a forked pull request, the NEXT_DEV_VERSION environment variable
# won't be set and we will use default version, since we are not going to
# upload the dev binary build anywhere
command: npm run binary-build -- --platform $PLATFORM --version ${NEXT_DEV_VERSION:-0.0.0-development}
- run: npm run binary-zip -- --platform $PLATFORM
# Cypress binary file should be zipped to cypress.zip
- run: ls -l *.zip

View File

@@ -139,9 +139,11 @@ deploy = {
build: (options) ->
console.log('#build')
options ?= @parseOptions(process.argv)
debug("parsed build options %o", options)
askMissingOptions(['version', 'platform'])(options)
.then ->
debug("building binary: platform %s version %s", options.platform, options.version)
build(options.platform, options.version, options)
zip: (options) ->