1.4 KiB
1.4 KiB
-
Get the version of crashpad that we're going to use.
libcc/src/third_party/crashpad/README.chromiumwill have a lineRevision:with a checksum.- clone Electron's Crashpad fork and create a new branch
git clone https://chromium.googlesource.com/crashpad/crashpadgit checkout 01110c0a3bgit remote add electron https://github.com/electron/crashpadgit checkout -b electron-crashpad-vA.B.C.DA.B.C.Dis the Chromium version found inlibcc/VERSIONand will be something like62.0.3202.94
-
Make a checklist of the Electron patches we need to apply e.g.
git log --onelineor view http://github.com/electron/crashpad/commits/previous-branch-name -
Foreach patch:
- (in new branch)
git cherry-pick checksum - resolve any conflicts
- make sure it builds
- add && commit
- (in new branch)
-
Push your work:
git push electron electorn-crashpad-v62.0.3202.94 -
Update Electron to build the new crashpad:
cd vendor/crashpadgit fetchgit checkout electron-crashpad-v62.0.3202.94
-
Regenerate Ninja files
- from Electron root's root, run
script/update.py script/build.py -c D --target=crashpad_clientscript/build.py -c D --target=crashpad_handler- If both of these work, it's probably good.
- from Electron root's root, run
-
Push changes to submodule reference
- (from electron root)
git add vendor/crashpad git push origin upgrade-to-chromium-62
- (from electron root)