mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-07 17:15:30 +02:00
Update dependencies and refine configuration files for improved compatibility and performance
This commit is contained in:
parent
7bec1c2025
commit
9bd7b5a900
69 changed files with 199 additions and 184 deletions
27
scripts/recalculate-patches.sh
Normal file
27
scripts/recalculate-patches.sh
Normal file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Recursively find all .patch files in the current directory and its subdirectories
|
||||
find src -type f -name "*.patch" | while read -r patch_file; do
|
||||
# Replace all - with . and remove the .patch extension
|
||||
new_file="${patch_file%/*}/$(basename "$patch_file" | sed 's/-/./' | sed 's/\.patch$//').patch"
|
||||
new_file="${new_file%.patch}"
|
||||
new_file="${new_file#src/}"
|
||||
|
||||
if [[ $new_file == *-mjs ]]; then
|
||||
new_file="${new_file/-mjs/.mjs}"
|
||||
fi
|
||||
if [[ $new_file == *-ftl ]]; then
|
||||
new_file="${new_file/-ftl/.ftl}"
|
||||
fi
|
||||
|
||||
# Create the new file with the same content as the original
|
||||
npm run export ${new_file} &
|
||||
done
|
||||
|
||||
for job in `jobs -p`
|
||||
do
|
||||
echo $job
|
||||
wait $job || let "FAIL+=1"
|
||||
done
|
||||
|
||||
echo "All patches have been exported successfully."
|
Loading…
Add table
Add a link
Reference in a new issue