Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMake mini installer for non-stable channel work properly #214
Conversation
a9b3b04
to
593a5cc
| --- a/chrome/installer/util/BUILD.gn | ||
| +++ b/chrome/installer/util/BUILD.gn | ||
| @@ -246,9 +246,16 @@ action("generate_strings") { | ||
| @@ -246,9 +246,22 @@ action("generate_strings") { | ||
| "$target_gen_dir/installer_util_strings.rc", | ||
| ] | ||
|
|
||
| + brand = "$branding_path_component" |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
simonhong
Jul 2, 2018
Author
Collaborator
This change is not introduced in this PR.
brave/brave-browser#153 tracks this.
This comment has been minimized.
This comment has been minimized.
| + # TODO(shong): Remove this. | ||
| + brand = brand + "-development" | ||
| + if (brave_chromium_build) { | ||
| + # When brave_strings.grd is modified, outputs should be re-generated. |
This comment has been minimized.
This comment has been minimized.
bridiver
Jul 2, 2018
Collaborator
this script uses chromium_strings.grd as the grd file so why are we adding brave_strings.grd as a source?
This comment has been minimized.
This comment has been minimized.
simonhong
Jul 2, 2018
•
Author
Collaborator
//chrome/installer/util::generate_strings uses create_string_rc.py and that script uses brave_strings.grd.
This comment has been minimized.
This comment has been minimized.
bridiver
Jul 2, 2018
Collaborator
That seems like a strange way to handle it. Can we mark this whole thing as a temporary workaround and not just the -development part? Open a new issue?
This comment has been minimized.
This comment has been minimized.
simonhong
Jul 2, 2018
Author
Collaborator
brave_strings.grd is not related with brand. What do you mean?
Also, you think our changes in create_string_rc.py should be changed too?
This comment has been minimized.
This comment has been minimized.
bridiver
Jul 2, 2018
Collaborator
I'm saying that putting brave_strings.grd inside create_string_rc.py doesn't seem like the best way to handle this and that's what I'd like to open another ticket for.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
simonhong
Jul 2, 2018
Author
Collaborator
Added more comment and brave/brave-browser#472 is created for this.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
It was not installed properly because needed string was empty.
593a5cc
to
256f5aa
| @@ -137,11 +137,14 @@ If you update this file, be sure also to update google_chrome_strings.grd. --> | |||
| Brave | |||
| </message> | |||
| <if expr="is_win"> | |||
| <message name="IDS_SXS_SHORTCUT_NAME" desc="Unused in Brave builds" translateable="false"> | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bbondy
Jul 13, 2018
Member
I'll handle it, but for future reference we never want to modify .grd files in patches
https://github.com/brave/brave-browser/blob/master/lib/l10nUtil.js#L87
simonhong commentedJul 2, 2018
•
edited
It was not installed properly because needed string was empty.
Also, brave_strings.grd is added to generate_strings's source list to trigger re-generation.
With this PR, mini_installer.exe installs all non-stable channels well.
Issue: brave/brave-browser#396
Submitter Checklist:
git rebase -ito squash commits (if needed).Test Plan:
mini_installer.exe --chrome-betafor beta channel.mini_installer.exe --chrome-devfor dev channel.mini_installer.exe --chrome-sxsfor nightly channel.Reviewer Checklist: