-
Notifications
You must be signed in to change notification settings - Fork 973
Multiple channels release with different installed locations and user dir #10552
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10552 +/- ##
==========================================
- Coverage 52.74% 51.99% -0.76%
==========================================
Files 269 270 +1
Lines 25670 25556 -114
Branches 4099 4074 -25
==========================================
- Hits 13540 13288 -252
- Misses 12130 12268 +138
|
tools/buildInstaller.js
Outdated
appName = 'Brave' | ||
break | ||
default: | ||
throw new Error('CHANNEL environment variable must be set to developer, beta or dev') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should include nightly as well
tools/buildPackage.js
Outdated
|
||
var channels = { nightly: true, developer: true, beta: true, dev: true } | ||
if (!channels[channel]) { | ||
throw new Error('CHANNEL environment variable must be set to developer, beta or dev') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nightly should be here as well
tools/buildPackage.js
Outdated
appName = 'Brave' | ||
break | ||
default: | ||
throw new Error('CHANNEL environment variable must be set to developer, beta or dev') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nightly should be here
a2bfe1e
to
31f714f
Compare
Besides the Muon PR, we'll also need some new images from @bradleyrichter in order to complete this one |
we should really integrate this into b-l-b which also has the brave icons, etc... |
const Channel = require('./channel') | ||
let appUserModelId = 'com.squirrel.brave.Brave' | ||
switch (Channel.channel()) { | ||
case 'nightly': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kind of a lame nit-pick; you could store the text representation of the channels in an enum-like format in channel.js:
const channelStrings = {
RELEASE: 'dev',
BETA: 'beta',
// ..
}
and then export / import from this file. Will make updating the constants easier 😄
switch (Channel.channel()) {
case Channel.name.NIGHTLY:
}
@darkdh can we get a rebase on this one please? 😄 |
31f714f
to
3a87cba
Compare
rebased |
@bradleyrichter would you tell me if the images are ready? #10552 (comment) |
These icons are not ready yet but I will create them today.
… On Sep 7, 2017, at 9:09 AM, Suguru Hirahara ***@***.***> wrote:
@bradleyrichter would you tell me if the images are ready? #10552 (comment)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
One thing that's a little confusing- if I run the different binaries after building, each of them will ask if I want to make this the default browser. How do Firefox and Chrome handle this? Do their nightly/developer versions still prompt for the default browser setting on launch? |
If I turn Always check default browser on Firefox and Firefox Nightly and set default browser to any of two, the other will always ask if you want to set me as default. |
We can disable prompting on non-production builds but keep the functionality.
… On Sep 8, 2017, at 11:06 AM, Anthony Tseng ***@***.***> wrote:
If I turn Always check default browser on Firefox and Firefox Nightly and set default browser to any of two, the other will always ask if you want to set me as default.
This is expected, some users will want to use Nightly as default browser. And different channels should be treated as different browsers
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#10552 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AM4jqvp_ECbmPc3jxUpvNPjFpnjyZ_6mks5sgYIxgaJpZM4O5wrG>.
|
@bradleyrichter just to confirm: we'd want to not prompt by default unless the build is in release channel? @darkdh would it be easy to make this change? 😄 |
Yes. This would be much less annoying for those who run dual installs.
|
const channel = process.env.CHANNEL | ||
|
||
var channels = { nightly: true, developer: true, beta: true, dev: true } | ||
if (!channels[channel]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be changed to import the channels directly from app/channel.js
.
const channels = require('../app/channel').channels
If that is an Array:
if (!channels.includes(channel)) {
if that is a Set:
if (!channels.has(channel)) {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems weird to me to pull dependency from app
folder for tools
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah that's true- maybe it's fine as-is 😄
|
||
const channel = env.CHANNEL | ||
|
||
var channels = { nightly: true, developer: true, beta: true, dev: true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same feedback as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments left- looks great 😄 👍 I tested building and launching each type- works as expected
(will give approval once we have icons / dependencies are merged / feedback is addressed if needed)
7b7f985
to
e48b164
Compare
@darkdh going to close this one for now given its wip for a while. Please re-open as needed. Thanks! |
Re-opening as we'll be revisiting this one soon! I'll remove the WIP tag since the remaining items are called out, I believe |
@darkdh ready for a rebase when you get a chance 😄 |
e48b164
to
65d19cc
Compare
rebased |
65d19cc
to
da9851e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have done a great deal of testing with this- everything is working as expected 😄
Great job on this one! We can finally get true beta/nightlies out now
Multiple channels release with different installed locations and user dir
Multiple channels release with different installed locations and user dir
Todo:
Needs new brave_installer.*, background.png, brave_splash_installing.gif for each channels from @bradleyrichter
Change package.json forelectron-packager
,electron-installer-debian
,electron-installer-redhat
andelectron-squirrel-startup
once they are mergedChange "iconUrl:
https://raw.githubusercontent.com/brave/browser-laptop/coexisted-channels/res/${channel}/app.ico
, " to master once reviewers apporvedfixes #10189
If 11104 is merged:
@Auditors: @bsclifton, @bridiver, @bbondy, @aekeus
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
Tests