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

Copy and package dev/beta channel png images #366

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 21 additions & 7 deletions patches/chrome-installer-linux-BUILD.gn.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/chrome/installer/linux/BUILD.gn b/chrome/installer/linux/BUILD.gn
index 4ac4a301c73841290fac70097e379b786108f831..054b8f885497e760aa06ee9762e6acf1118dda83 100644
index de0836f61cf2b0d167893a52ae37ae4631eaf1d9..e2dc53bcf3ae25bd0c9cb7e129b57794768cbfbd 100644
--- a/chrome/installer/linux/BUILD.gn
+++ b/chrome/installer/linux/BUILD.gn
@@ -26,8 +26,8 @@ declare_args() {
@@ -25,8 +25,8 @@ declare_args() {
assert(is_linux)

packaging_files_executables = [
Expand All @@ -13,7 +13,7 @@ index 4ac4a301c73841290fac70097e379b786108f831..054b8f885497e760aa06ee9762e6acf1
]
packaging_files_shlibs = []

@@ -156,12 +156,17 @@ action("merge_rpm_dependencies") {
@@ -159,12 +159,17 @@ action("merge_rpm_dependencies") {
}

action("strip_chrome_binary") {
Expand All @@ -32,7 +32,7 @@ index 4ac4a301c73841290fac70097e379b786108f831..054b8f885497e760aa06ee9762e6acf1
script = "//build/gn_run_binary.py"
sources = [
prog_name,
@@ -243,8 +248,8 @@ copy("common_packaging_files") {
@@ -246,8 +251,8 @@ copy("common_packaging_files") {
]
} else {
sources += [
Expand All @@ -43,7 +43,21 @@ index 4ac4a301c73841290fac70097e379b786108f831..054b8f885497e760aa06ee9762e6acf1
]
}

@@ -354,6 +359,12 @@ group("installer_deps") {
@@ -310,6 +315,13 @@ copy("theme_files") {
"$branding_dir_100/product_logo_32_dev.png",
]
}
+ else {
+ sources += [
+ "$branding_dir/product_logo_128_beta.png",
+ "$branding_dir/product_logo_128_dev.png",
+ "$branding_dir/product_logo_128_development.png",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about handing nightly image also?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can avoid this patching and creating same copy target to our gn(ex, brave/BUILD.gn) and adding it proper deps list like create_dist target.

+ ]
+ }
outputs = [
"$root_out_dir/installer/theme/{{source_file_part}}",
]
@@ -357,6 +369,12 @@ group("installer_deps") {
"//chrome/browser/resources/media/mei_preload:component",
"//sandbox/linux:chrome_sandbox",
]
Expand All @@ -56,7 +70,7 @@ index 4ac4a301c73841290fac70097e379b786108f831..054b8f885497e760aa06ee9762e6acf1
if (enable_nacl) {
public_deps += [
"//components/nacl/loader:nacl_helper",
@@ -379,6 +390,9 @@ group("installer_deps") {
@@ -386,6 +404,9 @@ group("installer_deps") {
template("linux_package") {
assert(defined(invoker.channel))
channel = invoker.channel
Expand All @@ -66,7 +80,7 @@ index 4ac4a301c73841290fac70097e379b786108f831..054b8f885497e760aa06ee9762e6acf1

if (current_cpu == "x86") {
# The shell scripts use "ia32" instead of "x86".
@@ -521,3 +535,6 @@ linux_package("beta") {
@@ -528,3 +549,6 @@ linux_package("beta") {
linux_package("unstable") {
channel = "unstable"
}
Expand Down
15 changes: 14 additions & 1 deletion patches/chrome-installer-linux-common-installer.include.patch
Original file line number Diff line number Diff line change
@@ -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() (
Expand Down Expand Up @@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

icon_regex=".*product_logo_[0-9]\+_dev\."
fi
fi
@@ -381,7 +395,7 @@ stage_install_common() {
exit 1
fi
Expand Down