chore: deprecate apply-patches in favour of git-{import,export}-patches (#15300)
This commit is contained in:
parent
4185efa08f
commit
335e9f68b7
123 changed files with 4368 additions and 4780 deletions
36
script/apply_all_patches.py
Normal file
36
script/apply_all_patches.py
Normal file
|
@ -0,0 +1,36 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
from lib import git
|
||||
from lib.patches import patch_from_dir
|
||||
|
||||
|
||||
patch_dirs = {
|
||||
'src/electron/patches/common/chromium':
|
||||
'src',
|
||||
|
||||
'src/electron/patches/common/boringssl':
|
||||
'src/third_party/boringssl/src',
|
||||
|
||||
'src/electron/patches/common/ffmpeg':
|
||||
'src/third_party/ffmpeg',
|
||||
|
||||
'src/electron/patches/common/skia':
|
||||
'src/third_party/skia',
|
||||
|
||||
'src/electron/patches/common/v8':
|
||||
'src/v8',
|
||||
}
|
||||
|
||||
|
||||
def apply_patches(dirs):
|
||||
for patch_dir, repo in dirs.iteritems():
|
||||
git.am(repo=repo, patch_data=patch_from_dir(patch_dir),
|
||||
committer_name="Electron Scripts", committer_email="scripts@electron")
|
||||
|
||||
|
||||
def main():
|
||||
apply_patches(patch_dirs)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
Loading…
Add table
Add a link
Reference in a new issue