1
0
Fork 1
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:
mr. M 2025-03-30 10:03:50 +02:00
parent 7bec1c2025
commit 9bd7b5a900
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
69 changed files with 199 additions and 184 deletions

View 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."