-
Notifications
You must be signed in to change notification settings - Fork 14
Update the uploadBrowser to take channel-specific binary naming into account #2
Conversation
…account Fixes brave/browser-laptop#11795 Auditors: @aekeus, @darkdh
} | ||
|
||
const getChannelName = () => { | ||
if (args.channel === '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.
if dev, no change will be made to the binary name
@@ -73,34 +73,34 @@ var OS_IDENTIFIER = 2 | |||
var recipes = [ | |||
// Linux | |||
['dist/Brave.tar.bz2', 'multi-channel/releases/CHANNEL/VERSION/linux64', 'linux'], | |||
['dist/brave_VERSION_amd64.deb', 'multi-channel/releases/CHANNEL/VERSION/debian64', 'linux'], | |||
['dist/brave-VERSION.x86_64.rpm', 'multi-channel/releases/CHANNEL/VERSION/fedora64', 'linux'], | |||
['dist/brave{{channelName}}_VERSION_amd64.deb', 'multi-channel/releases/CHANNEL/VERSION/debian64', 'linux'], |
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 used a handlebars.js type of token since it's easy to parse out and it's pretty widely recognized
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.
maybe we can upgrade this pattern to tools/buildPackages.js and tools/buildInstaller.js too
@@ -73,34 +73,34 @@ var OS_IDENTIFIER = 2 | |||
var recipes = [ | |||
// Linux | |||
['dist/Brave.tar.bz2', 'multi-channel/releases/CHANNEL/VERSION/linux64', 'linux'], | |||
['dist/brave_VERSION_amd64.deb', 'multi-channel/releases/CHANNEL/VERSION/debian64', 'linux'], | |||
['dist/brave-VERSION.x86_64.rpm', 'multi-channel/releases/CHANNEL/VERSION/fedora64', 'linux'], | |||
['dist/brave{{channelName}}_VERSION_amd64.deb', 'multi-channel/releases/CHANNEL/VERSION/debian64', 'linux'], |
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.
maybe we can upgrade this pattern to tools/buildPackages.js and tools/buildInstaller.js too
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 looks good! Thanks
This script will undergo a number of changes when the database back updater is deployed as well. |
Fixes brave/browser-laptop#11795
Auditors: @aekeus, @darkdh
I hand-ran the script on each platform (the latest build was beta - click for logs):
I also reviewed the s3 buckets under
brave-download
and things looked OK to me (for 0.20.6)