* Configure unique GUIDs, installer names, and update paths for Brave Origin * Fix buildflag_header template to support invoker's public_deps Chromium Issue number: 7486518 (https://chromium-review.googlesource.com/7486518) The template was forwarding public_deps from the invoker via forward_variables_from(), but then unconditionally assigning to it. This is incompatible - you can't forward a variable and also directly assign to it. The fix removes public_deps from forward_variables_from and explicitly checks for invoker.public_deps after initializing the required //build:buildflag_header_h dependency. * Update signing helper to support Origin With Sparkle (what we currently use): - Lives in each app bundle separately (Brave and Brave Origin separate) - There is no priviledged helper in use - SMAuthorizedClients is not used With Omaha v4 (not yet in use): The privileged helper is part of the browser app bundle and not the updater. The privileged helper is the thing that contains the SMAuthorizedClients value. The privileged helper gets copied to /Library/PrivilegedHelperTools/<helper name> The Brave updater is BraveUpdater.app and is the same for both products. When the browser first runs (or during installation), it registers itself with the updater and the updater installs itself to a shared location like - /Library/Application Support/BraveSoftware/BraveUpdater/ (system) - ~/Library/Application Support/BraveSoftware/BraveUpdater/ (user) Each app register with the updater with its own unique app guid (build/config.gni changes in my pr) The updater maintains a list of registered apps and checks for updates for each. Uninstalling one product doesn't remove the updater - it still serves the other. * Use Origin Sparkle feed URL for Brave Origin builds * Fix branding files for Origin to not have Browser in the name This also fixes the wrong info for the Release channel. * Fix wrong number of strings error because of Origin missing Dev channel ../../chrome/installer/util/l10n_string_util.cc(200,3): error: static assertion failed due to requirement 'std::size(kIDS_APP_SHORTCUTS_SUBDIR_NAME_BASEStrings) == 13:52:59 install_static::NUM_INSTALL_MODES': resource IDS_APP_SHORTCUTS_SUBDIR_NAME_BASE has the wrong number of mode-specific strings. 13:52:59 200 | DO_MODE_STRINGS 13:52:59 | ^~~~~~~~~~~~~~~ * Adjust product path names for Brave Origin * Update chromium_src/chrome/browser/component_updater/updater_state_win.cc Co-authored-by: Michael Herrmann <michael@herrmann.io> * Update chromium_src/chrome/installer/util/google_update_constants.cc Co-authored-by: Michael Herrmann <michael@herrmann.io> * Update browser/mac/sparkle_glue.mm Co-authored-by: Michael Herrmann <michael@herrmann.io> * Review fixes --------- Co-authored-by: Michael Herrmann <michael@herrmann.io>
26 lines
614 B
Python
26 lines
614 B
Python
from brave_chromium_utils import inline_file
|
|
inline_file("//chrome/DEPS", globals(), locals())
|
|
|
|
chrome_common_deps = {}
|
|
inline_file("//chrome/common/DEPS", {}, chrome_common_deps)
|
|
include_rules += chrome_common_deps["include_rules"]
|
|
|
|
include_rules += [
|
|
"+chrome/common",
|
|
"+components/grit",
|
|
"+brave/components/constants",
|
|
]
|
|
|
|
specific_include_rules = {
|
|
".*browsertest\.cc": [
|
|
"+chrome/test",
|
|
"+content/public/test",
|
|
],
|
|
"brave_content_client_unittest\.cc": [
|
|
"+content/common/url_schemes.h",
|
|
],
|
|
"brave_channel_info_unittest\.cc": [
|
|
"+brave/components/brave_origin/buildflags",
|
|
],
|
|
}
|