Skip to content

Commit

Permalink
Merge pull request #209 from brave/create_dist_only_for_passed_channel
Browse files Browse the repository at this point in the history
Only creates dist package for specified channel on linux
  • Loading branch information
bbondy authored Jul 3, 2018
2 parents 2dbbfc9 + 0b780bf commit 074744b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ group("create_dist") {
}
if (is_linux) {
deps += [
"//chrome/installer/linux",
"//chrome/installer/linux:$brave_linux_channel",
"//brave/app/linux:dist_resources",
]
}
Expand Down
12 changes: 12 additions & 0 deletions build/config.gni
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ if (is_win) {
brave_exe = "$chrome_product_full_name.app"
}

if (is_linux) {
# Our channle name and upstream linux channel name is different.
brave_linux_channel = ""
if (brave_channel == "") {
brave_linux_channel = "stable"
} else if (brave_channel == "dev") {
brave_linux_channel = "unstable"
} else {
assert(brave_channel == "beta", "Not supported channel name: $brave_channel")
}
}

brave_icon_dir = "nightly"
if (is_component_build) {
brave_icon_dir = "dev"
Expand Down

0 comments on commit 074744b

Please sign in to comment.