diff --git a/BUILD.gn b/BUILD.gn index 765fa3785399..176b268bfa27 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -64,6 +64,22 @@ brave_paks("packed_resources") { } } +branding_dir = "//chrome/app/theme/$branding_path_component" +copy("theme_files") { + visibility = [ ":*" ] + if (!is_chrome_branded) { + sources = [ + "$branding_dir/product_logo_128_beta.png", + "$branding_dir/product_logo_128_dev.png", + "$branding_dir/product_logo_128_development.png", + "$branding_dir/product_logo_128_nightly.png", + ] + } + outputs = [ + "$root_out_dir/installer/theme/{{source_file_part}}", + ] +} + group("create_dist") { deps = [ ":create_dist_zips" @@ -81,6 +97,7 @@ group("create_dist") { deps += [ "//chrome/installer/linux:$linux_channel", "//brave/app/linux:dist_resources", + ":theme_files", ] } } diff --git a/patches/chrome-installer-linux-common-installer.include.patch b/patches/chrome-installer-linux-common-installer.include.patch index 36d49df617b6..62ea18f650cc 100644 --- a/patches/chrome-installer-linux-common-installer.include.patch +++ b/patches/chrome-installer-linux-common-installer.include.patch @@ -1,5 +1,5 @@ diff --git a/chrome/installer/linux/common/installer.include b/chrome/installer/linux/common/installer.include -index 58b80612445aa0616462805f464bcae0b3ee1c3e..5acee06845fe2f94ef51f5ddbf9261a33fa4df5d 100644 +index 58b80612445aa0616462805f464bcae0b3ee1c3e..fdead2554de43afd1618f56f509406e241535cb4 100644 --- a/chrome/installer/linux/common/installer.include +++ b/chrome/installer/linux/common/installer.include @@ -75,6 +75,7 @@ process_template() ( @@ -30,6 +30,19 @@ index 58b80612445aa0616462805f464bcae0b3ee1c3e..5acee06845fe2f94ef51f5ddbf9261a3 # ICU data file; Necessary when the GN icu_use_data_file flag is true. install -m 644 "${BUILDDIR}/icudtl.dat" "${STAGEDIR}/${INSTALLDIR}/" +@@ -275,10 +289,10 @@ stage_install_common() { + + # app icons + local icon_regex=".*product_logo_[0-9]\+\." +- if [ "$BRANDING" = "google_chrome" ]; then ++ if [ "$BRANDING" = "brave" ]; then + if [ "$CHANNEL" = "beta" ]; then + icon_regex=".*product_logo_[0-9]\+_beta\." +- elif [ "$CHANNEL" = "unstable" ]; then ++ elif [ "$CHANNEL" = "unstable" -o "$CHANNEL" = "dev" ]; then + icon_regex=".*product_logo_[0-9]\+_dev\." + fi + fi @@ -381,7 +395,7 @@ stage_install_common() { exit 1 fi