-
Notifications
You must be signed in to change notification settings - Fork 888
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
scripts to build linux installer packages #28
Conversation
Thanks!
No need to work on that part, we can re-use what we do for the browser-laptop based current desktop software.
I think it would be good if we can find a way to avoid that patch and have the dep. |
+ "//brave/chromium_src/chrome/installer/linux/common/brave-browser/chromium-browser.appdata.xml", | ||
+ "//brave/chromium_src/chrome/installer/linux/common/brave-browser/chromium-browser.info", | ||
] |
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 think this patch can be cleaner just by removing lines 29 and 30 and replacing with lines 36 and 37
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.
Yes, fixed.
</p> | ||
</description> | ||
<url type="homepage">https://brave.com/</url> | ||
<screenshots> |
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 better to completely remove the screenshots element?
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.
Agree, removed.
] | ||
packaging_files_shlibs = [] | ||
|
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.
remove extra blank newline
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.
Thanks for finding, fixed.
+ sources += [ | ||
+ "//brave/chromium_src/chrome/installer/linux/common/brave-browser/chromium-browser.appdata.xml", | ||
+ "//brave/chromium_src/chrome/installer/linux/common/brave-browser/chromium-browser.info", | ||
+ ] |
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.
Just remove lines 26-27 and replace with lines 36-37 here, thanks.
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.
This is done.
The reason why I have done that is the message in #chromium-fork
from @bridiver
when you are replacing a source file in a chrome gn file you should add a patch with `source -=` and `source +=`
vs patching inline in the existing `source =`
But patches here is fragile balance between minimal size for future support and clarity. Direct patch does make the size of result smaller, without obvious damage for clarity. So, thanks for mention about issue.
requirement, distro, os.path.basename(binary))) | ||
- ret_code = 1 | ||
+ # Disabled to finish the build. Some deps may be missing, but rpm is well installed. | ||
+ #ret_code = 1 |
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.
Please resolve this
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.
The build of rpm packages requires to run on Ubuntu 14.
This patch is removed now.
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.
comments inline
if (is_chrome_branded) { | ||
package = "google-chrome" | ||
} else { | ||
- package = "chromium-browser" |
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.
where is this name actually used? If this is a deb we don't want "-chromium-fork" here. If this package name isn't seen by users or if we can just rename it afterwards then I think we shouldn't patch it at all
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.
This line in brave/src/chrome/installer/linux/BUILD.gn
does not used anywhere indeed. The package name is defined by the line PACKAGE="brave-browser"
at the file https://github.com/brave/antimuon/pull/28/files#diff-a023e566679169856984037106482f04R9 . I have modified this line in prev commits to have consistency between installer/linux/BUILD.gn
and chromium-browser.info
. Now this is removed.
Thanks for notice, I got rid of chromium-fork
mention everywhere, but I have left the package name modified, because it is taken from completely overridden file chromium_src/chrome/installer/linux/common/brave-browser/chromium-browser.info
(https://github.com/brave/antimuon/pull/28/files#diff-a023e566679169856984037106482f04R1) and does not affect the patch complexity.
Removed workaround patch for calculate_package_deps.py. Just in case the build is being configured and will be checked in Ubuntu 14. |
Fixed issue with build after checkout. Fix is in https://github.com/brave/brave/pull/67 . |
Could you make the names Also secondary priority and can come in a diff PR, but pls make sure it also works with
|
Remove FETCH_CALLBACK_EXTRA_DATA_ST structure
Update @types/react-redux to fix TS2344 error during build
This PR for issue brave/brave-browser-snap#19 .
Now command
npm run create_dist
ornpm run create_dist -- --debug_build=true --official_build=false
creates these packages:rpm and deb for each of channel stable, beta, unstable.
There are two points with this PR: