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

Commit

Permalink
Add env var for testing updates
Browse files Browse the repository at this point in the history
Auditors: @aekeus
  • Loading branch information
bbondy committed Jan 28, 2016
1 parent 3f46073 commit 80dbf39
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,9 @@ app.on('ready', function () {
PackageLoader.load((err, pack) => {
if (err) throw new Error('package.json could not be accessed')

// Setup the auto updater
Updater.init(process.platform, pack.version)
// Setup the auto updater, check the env variable first because it's
// used to cehck the update channel before releases.
Updater.init(process.platform, process.env.BRAVE_UPDATE_VERSION || pack.version)

// This is fired by a menu entry (for now - will be scheduled)
process.on(messages.CHECK_FOR_UPDATE, () => Updater.checkForUpdate(true))
Expand Down

1 comment on commit 80dbf39

@aekeus
Copy link
Member

@aekeus aekeus commented on 80dbf39 Jan 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. No more having to modify package.json. ++

Please sign in to comment.