2023-04-23 07:57:55 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
2023-04-29 09:49:55 +00:00
|
|
|
APP_ROOT_DIR="$(dirname "$SCRIPT_DIR")"
|
2023-04-23 07:57:55 +00:00
|
|
|
|
2023-04-29 09:49:55 +00:00
|
|
|
cd "$APP_ROOT_DIR"
|
2023-04-23 07:57:55 +00:00
|
|
|
|
|
|
|
mkdir -p "xulrunner/bin"
|
|
|
|
if [ "`uname`" = "Darwin" ]; then
|
|
|
|
# Mozilla has Linux executables where the Mac files should be, so supply our own Mac builds
|
2023-05-17 07:47:52 +00:00
|
|
|
curl -o "xulrunner/bin/mar" https://zotero-download.s3.us-east-1.amazonaws.com/tools/mac/102.11.0esr/mar
|
|
|
|
curl -o "xulrunner/bin/mbsdiff" https://zotero-download.s3.us-east-1.amazonaws.com/tools/mac/102.11.0esr/mbsdiff
|
2023-04-23 07:57:55 +00:00
|
|
|
elif [ "`uname -o 2> /dev/null`" = "Cygwin" ]; then
|
2023-05-17 07:47:52 +00:00
|
|
|
# Mozilla doesn't seem to provide Windows versions via its file server anymore, so supply our own
|
|
|
|
curl -o "xulrunner/bin/mar.exe" https://zotero-download.s3.us-east-1.amazonaws.com/tools/win/102.11.0esr/mar.exe
|
|
|
|
curl -o "xulrunner/bin/mbsdiff.exe" https://zotero-download.s3.us-east-1.amazonaws.com/tools/win/102.11.0esr/mbsdiff.exe
|
2023-04-23 07:57:55 +00:00
|
|
|
else
|
2023-05-17 07:47:52 +00:00
|
|
|
curl -o "xulrunner/bin/mar" https://ftp.mozilla.org/pub/firefox/nightly/2022/05/2022-05-30-09-39-43-mozilla-central/mar-tools/linux64/mar
|
|
|
|
curl -o "xulrunner/bin/mbsdiff" https://ftp.mozilla.org/pub/firefox/nightly/2022/05/2022-05-30-09-39-43-mozilla-central/mar-tools/linux64/mbsdiff
|
2023-04-23 07:57:55 +00:00
|
|
|
fi
|
|
|
|
chmod 755 xulrunner/bin/mar xulrunner/bin/mbsdiff
|