Skip to content

Commit

Permalink
Allow starting unofficial Release builds
Browse files Browse the repository at this point in the history
Example usage:
npm run start -- Release --official_build=false

Fix brave/brave-browser#754
  • Loading branch information
bbondy committed Aug 15, 2018
1 parent 525bd76 commit 9b4bbef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ Config.prototype.update = function (options) {
this.officialBuild = this.buildConfig === 'Release'
}

if (this.debugBuild) {
if (!this.officialBuild) {
this.channel = 'development'
} else if (options.channel !== 'release') {
// In chromium src, empty string represents stable channel.
Expand Down
1 change: 1 addition & 0 deletions build/scripts/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ program
.option('--disable_pdfjs_extension', 'disable loading the PDFJS extension')
.option('--enable_brave_update', 'enable brave update')
.option('--channel <target_chanel>', 'target channel to start', /^(beta|dev|nightly|release)$/i, 'release')
.option('--official_build <official_build>', 'force official build settings')
.option('--single_process', 'use a single process')
.arguments('[build_config]')
.action(start)
Expand Down

0 comments on commit 9b4bbef

Please sign in to comment.