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

Add build_delta_installer option to create_dist #9667

Open
wants to merge 1 commit into
base: master
from

Conversation

@simonhong
Copy link
Collaborator

simonhong commented May 7, 2020

To generate delta installer, pass true to build_delta_installer and
pass folder that includes previous versions chrome.7z file to
last_chrome_installer. This folder should be in out dir.
For example, if we want to delta folder for it, create delta folder
to out/Release/delta and copies chrome.7z to it. and pass "delta"
to last_chrome_installer. During the build, couregette.exe will be
copied to that folder.

Issue #9565

Submitter Checklist:

Test Plan:

Reviewer Checklist:

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

After-merge Checklist:

  • The associated issue milestone is set to the smallest version that the
    changes has landed on.
  • All relevant documentation has been updated.
@simonhong simonhong force-pushed the delta_installer_win branch from d60a152 to efeaa66 May 8, 2020
@simonhong simonhong marked this pull request as ready for review May 8, 2020
@simonhong simonhong requested review from bridiver, bsclifton and mihaiplesa May 8, 2020
@simonhong simonhong self-assigned this May 8, 2020
@simonhong simonhong added this to the 1.10.x - Nightly milestone May 8, 2020
@simonhong simonhong mentioned this pull request May 8, 2020
7 of 32 tasks complete
@@ -482,6 +487,11 @@ Config.prototype.update = function (options) {
this.skip_signing = true
}

if (options.build_delta_installer) {
this.build_delta_installer = true
this.last_chrome_installer = options.last_chrome_installer

This comment has been minimized.

Copy link
@bridiver

bridiver May 13, 2020

Collaborator

I think we should be checking this for a non-empty value instead of just assuming it exists. Presumably it should be an error if build_delta_installer === true && last_chrome_installer === null ?

This comment has been minimized.

Copy link
@bridiver

This comment has been minimized.

Copy link
@simonhong

simonhong May 14, 2020

Author Collaborator

Right, last_chrome_installer should have args for building delta installer.
Added assert here - https://github.com/brave/brave-browser/pull/9667/files#diff-f7bf2b665273dfa66ffa4ad7c0a52bb9R197.
It doesn't make sense to try to build delta installer w/o last_chrome_installer args.

@simonhong simonhong force-pushed the delta_installer_win branch from efeaa66 to f9b414a May 14, 2020
To generate delta installer, pass true to build_delta_installer and
pass folder that includes previous versions chrome.7z file to
last_chrome_installer. This folder should be in out dir.
For example, if we want to delta folder for it, create delta folder
to out/Release/delta and copies chrome.7z to it. and pass "delta"
to last_chrome_installer. During the build, couregette.exe wiil be
copired to that folder.
@simonhong simonhong force-pushed the delta_installer_win branch from f9b414a to 3d787df May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.