Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Update the uploadBrowser to take channel-specific binary naming into account #2

Merged
merged 1 commit into from
Nov 7, 2017

Conversation

bsclifton
Copy link
Member

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)

}

const getChannelName = () => {
if (args.channel === 'dev') {
Copy link
Member Author

@bsclifton bsclifton Nov 7, 2017

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'],
Copy link
Member Author

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

Copy link
Member

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

@bsclifton bsclifton self-assigned this Nov 7, 2017
@@ -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'],
Copy link
Member

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

Copy link
Member

@aekeus aekeus left a 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

@aekeus
Copy link
Member

aekeus commented Nov 7, 2017

This script will undergo a number of changes when the database back updater is deployed as well.

@bsclifton bsclifton merged commit dde3e2b into master Nov 7, 2017
@bsclifton bsclifton deleted the multi-channel-support branch November 7, 2017 23:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants