Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #11324 from brave/build-package-channels
Browse files Browse the repository at this point in the history
Build package channels
  • Loading branch information
bbondy authored Oct 6, 2017
2 parents bf4726d + 35bc6f2 commit 5de3dcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = require('../js/constants/buildConfig')
// The current channel is retrieved first from the buildConfig constants file,
// then the environments and finally defaults to dev
var channel = config.channel || process.env.CHANNEL || 'dev'
let channels = new Set(['dev', 'beta', 'stable'])
let channels = new Set(['dev', 'beta', 'stable', 'developer', 'nightly'])

if (!channels.has(channel)) {
throw new Error(`Invalid channel ${channel}`)
Expand Down
4 changes: 2 additions & 2 deletions tools/buildPackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ var env = {
CHANNEL: process.env.CHANNEL
}

var channels = { dev: true, beta: true, stable: true }
var channels = { dev: true, beta: true, stable: true, nightly: true, developer: true }
if (!channels[env.CHANNEL]) {
throw new Error('CHANNEL environment variable must be set to dev, beta or stable')
throw new Error('CHANNEL environment variable must be set to dev, beta, stable, nightly, or developer')
}

console.log('Writing buildConfig.js...')
Expand Down

0 comments on commit 5de3dcb

Please sign in to comment.