mirror of
https://github.com/daijro/camoufox.git
synced 2026-08-23 08:00:06 +00:00
Clone & patch in same local repo
Do not copy the Firefox source repo before patching. Manage everything through git instead.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
"""
|
||||
Simple script to apply *.bootstrap patches
|
||||
This was separated from the main patch script because its indended to run on docker build.
|
||||
|
||||
Run:
|
||||
python3 scripts/init-patch.py <version> <release>
|
||||
"""
|
||||
|
||||
from patch import list_files, patch, enter_srcdir, leave_srcdir
|
||||
|
||||
|
||||
def apply_bootstrap_patches():
|
||||
enter_srcdir()
|
||||
|
||||
# Apply bootstraps first
|
||||
for patch_file in list_files('../patches', suffix='*.bootstrap'):
|
||||
patch(patch_file)
|
||||
|
||||
leave_srcdir()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
apply_bootstrap_patches()
|
||||
Reference in New Issue
Block a user