Move linux channel mapping logic to //brave/build/config.gni

This commit is contained in:
Simon Hong
2018-07-03 14:28:08 +09:00
parent 27fff4288b
commit 0b780bff53
2 changed files with 13 additions and 8 deletions
+1 -8
View File
@@ -74,15 +74,8 @@ group("create_dist") {
deps += [ "build/mac:create_dist_mac" ]
}
if (is_linux) {
_linux_channel = brave_channel
if (brave_channel == "") {
_linux_channel = "stable"
} else if (brave_channel == "dev") {
_linux_channel = "unstable"
}
deps += [
"//chrome/installer/linux:$_linux_channel",
"//chrome/installer/linux:$brave_linux_channel",
"//brave/app/linux:dist_resources",
]
}
+12
View File
@@ -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"