1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 22:33:35 +00:00

build(firefox): bump max file size limit to 5MB (#15477)

https://github.com/mozilla/addons-linter/pull/5674
This commit is contained in:
Sunset Mikoto
2025-07-25 01:42:35 +08:00
committed by GitHub
parent b3db1b79ce
commit cd33ea0747

View File

@@ -269,19 +269,19 @@ jobs:
# Declare variable as indexed array # Declare variable as indexed array
declare -a FILES declare -a FILES
# Search for source files that are greater than 4M # Search for source files that are greater than 5M
TARGET_DIR='./browser-source/apps/browser' TARGET_DIR='./browser-source/apps/browser'
while IFS=' ' read -r RESULT; do while IFS=' ' read -r RESULT; do
FILES+=("$RESULT") FILES+=("$RESULT")
done < <(find $TARGET_DIR -size +4M) done < <(find $TARGET_DIR -size +5M)
# Validate results and provide messaging # Validate results and provide messaging
if [[ ${#FILES[@]} -ne 0 ]]; then if [[ ${#FILES[@]} -ne 0 ]]; then
echo "File(s) exceeds size limit: 4MB" echo "File(s) exceeds size limit: 5MB"
for FILE in ${FILES[@]}; do for FILE in ${FILES[@]}; do
echo "- $(du --si $FILE)" echo "- $(du --si $FILE)"
done done
echo "ERROR Firefox rejects extension uploads that contain files larger than 4MB" echo "ERROR Firefox rejects extension uploads that contain files larger than 5MB"
# Invoke failure # Invoke failure
exit 1 exit 1
fi fi