Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make mini installer for non-stable channel work properly #214

Merged
merged 1 commit into from
Jul 3, 2018

Conversation

simonhong
Copy link
Member

@simonhong simonhong commented Jul 2, 2018

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:

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).
  • Tagged reviewers and labelled the pull request as needed.
  • Request a security/privacy review as needed.

Test Plan:

mini_installer.exe --chrome-beta for beta channel.
mini_installer.exe --chrome-dev for dev channel.
mini_installer.exe --chrome-sxs for nightly channel.

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions

@simonhong simonhong self-assigned this Jul 2, 2018
@simonhong simonhong requested a review from bbondy July 2, 2018 13:25
@simonhong simonhong force-pushed the make_window_silent_installer_work branch from a9b3b04 to 593a5cc Compare July 2, 2018 13:30
--- 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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we changing the branding_path_component here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is not introduced in this PR.
brave/brave-browser#153 tracks this.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, you're right. I'm going to take a look at that issue

+ # TODO(shong): Remove this.
+ brand = brand + "-development"
+ if (brave_chromium_build) {
+ # When brave_strings.grd is modified, outputs should be re-generated.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this script uses chromium_strings.grd as the grd file so why are we adding brave_strings.grd as a source?

Copy link
Member Author

@simonhong simonhong Jul 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

//chrome/installer/util::generate_strings uses create_string_rc.py and that script uses brave_strings.grd.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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 see. I'll create new issue for that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added more comment and brave/brave-browser#472 is created for this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have more comment on this PR?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, no. I'll approve

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for kind review!

It was not installed properly because needed string was empty.
@simonhong simonhong force-pushed the make_window_silent_installer_work branch from 593a5cc to 256f5aa Compare July 2, 2018 23:21
@simonhong simonhong merged commit 08ddb80 into master Jul 3, 2018
@simonhong simonhong deleted the make_window_silent_installer_work branch July 3, 2018 01:45
@@ -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">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should be in the rebaes_l10n script since this file is generated.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants