-
Notifications
You must be signed in to change notification settings - Fork 19
/
BUILD.gn
64 lines (52 loc) · 1.91 KB
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
import("//brave/build/config.gni")
assert(is_win)
group("omaha") {
deps = [ ":build_omaha_installer" ]
}
action("build_omaha_installer") {
script="build_omaha.py"
inputs = [ "build_omaha.py" ]
sources = [ "$root_out_dir/$brave_installer_exe" ]
_install_switch = ""
_tag_app_name = "Brave-Release"
if (brave_channel == "beta") {
_install_switch = "--chrome-beta"
_tag_app_name = "Brave-Browser-Beta"
} else if (brave_channel == "dev") {
_install_switch = "--chrome-dev"
_tag_app_name = "Brave-Browser-Dev"
} else if (brave_channel == "nightly") {
_install_switch = "--chrome-sxs"
_tag_app_name = "Brave-Browser-Nightly"
} else {
assert(brave_channel == "", "Unknown channel name")
}
out_dir = rebase_path(root_out_dir)
args = [
"--root_out_dir=$out_dir",
"--brave_installer_exe=$brave_installer_exe",
"--stub_installer_exe=$brave_stub_installer_exe",
"--stub_untagged_exe=$brave_untagged_stub_installer_exe",
"--standalone_installer_exe=$brave_standalone_installer_exe",
"--silent_installer_exe=$brave_silent_installer_exe",
"--untagged_installer_exe=$brave_untagged_installer_exe",
"--guid=$brave_app_guid",
"--install_switch=$_install_switch",
"--tag_ap=$tag_ap",
"--tag_app_name=$_tag_app_name",
"--brave_full_version=$chrome_version_major.$brave_version_major.$brave_version_minor.$brave_version_build",
"--tag_installdataindex=$tag_installdataindex",
]
outputs = [
"$root_out_dir/$brave_stub_installer_exe",
"$root_out_dir/$brave_standalone_installer_exe",
"$root_out_dir/$brave_silent_installer_exe",
"$root_out_dir/$brave_untagged_installer_exe",
]
deps = [
"//brave/build/win:create_signed_installer",
]
}