-
Notifications
You must be signed in to change notification settings - Fork 899
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
Support delta brave_installer #5484
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,22 @@ | ||
diff --git a/chrome/installer/mini_installer/BUILD.gn b/chrome/installer/mini_installer/BUILD.gn | ||
index 7d835183ab85b5b0eb628bba236ca44279b69366..862b8424b2ad0c5ebf11cdbe52a1691461ee4275 100644 | ||
index 7d835183ab85b5b0eb628bba236ca44279b69366..a4dbbfbc21f08ddc6a7c20b112fc5acb915f0aac 100644 | ||
--- a/chrome/installer/mini_installer/BUILD.gn | ||
+++ b/chrome/installer/mini_installer/BUILD.gn | ||
@@ -12,6 +12,10 @@ import("//tools/v8_context_snapshot/v8_context_snapshot.gni") | ||
@@ -11,6 +11,7 @@ import("//third_party/icu/config.gni") | ||
import("//tools/v8_context_snapshot/v8_context_snapshot.gni") | ||
import("//ui/base/ui_features.gni") | ||
import("//v8/gni/v8.gni") | ||
+import("//brave/build/config.gni") | ||
|
||
+if (brave_chromium_build) { | ||
+ import("//brave/build/config.gni") | ||
+} | ||
+ | ||
declare_args() { | ||
# The Chrome archive is compressed in official builds to reduce the size of | ||
# the installer. By default: non-official or component builds, a build mode | ||
@@ -183,6 +187,22 @@ template("generate_mini_installer") { | ||
@@ -183,6 +184,9 @@ template("generate_mini_installer") { | ||
"//third_party/icu:icudata", | ||
chrome_dll_target, | ||
] | ||
+ if (brave_chromium_build) { | ||
+ if (skip_signing) { args += [ "--skip_signing" ] } | ||
+ inputs -= [ | ||
+ "$root_out_dir/chrome.exe", | ||
+ ] | ||
+ inputs += [ | ||
+ "$root_out_dir/brave.exe", | ||
+ "$root_out_dir/brave_resources.pak", | ||
+ "$root_out_dir/brave_100_percent.pak", | ||
+ "$root_out_dir/brave_200_percent.pak", | ||
+ ] | ||
+ deps += [ | ||
+ "//brave:packed_resources", | ||
+ "//brave/build/win:copy_exe", | ||
+ ] | ||
+ } | ||
+ if (skip_signing) { args += [ "--skip_signing" ] } | ||
+ if (build_delta_installer) { args += [ "--setup_exe_format=DIFF", "--diff_algorithm=COURGETTE", "--last_chrome_installer",rebase_path("$root_out_dir/$last_chrome_installer", root_build_dir) ] } | ||
+ deps += [ "//brave:mini_installer_dependencies" ] | ||
|
||
if (enable_hidpi) { | ||
args += [ "--enable_hidpi=1" ] |
28 changes: 18 additions & 10 deletions
28
patches/chrome-tools-build-win-create_installer_archive.py.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W/o this change,
lzma_exec
generatestemp_dir
underc:/
instead of using cwd's one.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it ever possible for
temp_dir
to have spaces? If so, you might try something like-o.\"%s"' % temp_dir
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, thanks for catching. It would be much safer.
Changed to
-o./"%s" % temp_dir
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still don't understand why this is needed, how does it work for chrome?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After discussing with @bridiver , This is reverted to
'-o%s' % temp_dir,
because relative path in out doesn't have space.and asked about this in chromium shared slack channel.