Files
Brian R. BondyandFrancois Marier 581039ac87 Use origin-branded names for packages and dist artifacts (#34939)
* Use origin-branded names for Linux packages and dist artifacts

When is_brave_origin_branded=true, use brave-origin instead of
brave-browser for DEB/RPM package names and brave-origin instead
of brave for Linux symbols zip filenames.

- Add brave-origin/chromium-browser.info and appdata.xml.template
- Add brave_dist_name and brave_linux_package_name to config.gni
- Use brave_linux_package_name in Linux installer patch
- Conditionally select branding directory in sources.gni

* Use origin-branded dist name for all platform artifacts

Use brave_dist_name for dist zips, symbols, and native symbols
on all platforms. For origin builds this renames artifacts from
brave-v* to brave-origin-v* on Windows, Mac, and Android.

* Update chromium_src/chrome/installer/linux/common/brave-origin/appdata.xml.template

Co-authored-by: Francois Marier <francois@brave.com>

* Apply suggestion from @fmarier

Co-authored-by: Francois Marier <francois@brave.com>

* Use separate install dirs for origin to allow coexistence

Use /opt/brave.com/brave-origin and /etc/brave-origin for origin
builds so that regular Brave and Brave Origin can be installed
side by side on the same machine.

* Use origin screenshot URL in appdata template

* Match project_license with brave-browser appdata template

* Use distinct PROGNAME for origin to avoid conflicts with brave-browser

* Use brave-origin as binary name on Linux for origin builds

* Revert brave_exe and PROGNAME changes for origin

PROGNAME must match the actual binary name (brave) since the
wrapper script uses it to exec the binary. Coexistence between
brave-browser and brave-origin is handled by distinct PACKAGE,
INSTALLDIR, and ENROLLMENTDIR values, not the binary name.

---------

Co-authored-by: Francois Marier <francois@brave.com>
2026-03-25 10:56:13 -04:00

45 lines
1.3 KiB
Plaintext

# Copyright (c) 2020 The Brave Authors. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
import("//brave/components/brave_origin/buildflags/buildflags.gni")
if (is_brave_origin_branded) {
_linux_branding_dir = "brave-origin"
} else {
_linux_branding_dir = "brave-browser"
}
common_packaging_files_sources = [
"//brave/LICENSE",
"//brave/chromium_src/chrome/app/resources/manpage.1.in",
"//brave/chromium_src/chrome/installer/linux/common/$_linux_branding_dir/appdata.xml.template",
"//brave/chromium_src/chrome/installer/linux/common/$_linux_branding_dir/chromium-browser.info",
]
common_packaging_files_excluded_sources = [
"//chrome/app/resources/manpage.1.in",
"common/appdata.xml.template",
"common/chromium-browser.info",
]
brave_packaging_files_executables = [
"$root_out_dir/brave",
"$root_out_dir/brave_sandbox",
]
excluded_packaging_files_executables = [
"$root_out_dir/chrome",
"$root_out_dir/chrome_sandbox",
]
brave_installer_deps = [
"//brave/build/linux:copy_exe",
"//brave/build/linux:copy_sandbox",
]
strip_chrome_binary_deps = [ "//brave/build/linux:copy_exe" ]
strip_chrome_sandbox_deps = [ "//brave/build/linux:copy_sandbox" ]