From 8bf8bfe8049b23ef1ef19e56378554dcda5dc1ae Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 31 Mar 2024 06:28:51 -0400 Subject: [PATCH] Fix fetch_xulrunner error on Linux after eeefd1cc0 --- app/scripts/fetch_xulrunner | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/scripts/fetch_xulrunner b/app/scripts/fetch_xulrunner index 622b427a70..3dd97f9e83 100755 --- a/app/scripts/fetch_xulrunner +++ b/app/scripts/fetch_xulrunner @@ -103,6 +103,8 @@ function get_utf16_chars { # Make various modifications to the stock Firefox app # function modify_omni { + platform=$1 + mkdir omni mv omni.ja omni cd omni @@ -163,7 +165,7 @@ function modify_omni { remove_line '(RemoteSettings|services-|telemetry|Telemetry|URLDecorationAnnotationsService)' components/components.manifest # 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 + if [[ $platform != 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 @@ -528,7 +530,7 @@ if [ $BUILD_LINUX == 1 ]; then mv firefox firefox-$arch pushd firefox-$arch - modify_omni + modify_omni $arch popd echo $($SCRIPT_DIR/xulrunner_hash -p l) > hash-linux rm "firefox-$GECKO_VERSION.tar.bz2"