Fix fetch_xulrunner error on Windows after 982d08798

This commit is contained in:
Dan Stillman 2024-03-31 06:25:30 -04:00
parent 72168a27ec
commit eeefd1cc0d

View file

@ -162,8 +162,10 @@ function modify_omni {
# Disable unwanted components
remove_line '(RemoteSettings|services-|telemetry|Telemetry|URLDecorationAnnotationsService)' components/components.manifest
# Ignore relative paths in PATH in Subprocess.pathSearch(), used when bare command is passed to Utilities.Internal.subprocess()
# On Mac/Linux, ignore relative paths in PATH in Subprocess.pathSearch(), used when a bare command is passed to Utilities.Internal.subprocess()
if [[ $1 != win* ]]; then
replace_line 'let path = PathUtils.join\(dir, bin\);' 'if (!dir.startsWith("\/")) continue; let path = PathUtils.join(dir, bin);' modules/subprocess/subprocess_unix.sys.mjs
fi
# Remove unwanted files
rm modules/FxAccounts*