fune/taskcluster/scripts/misc/pack-macos-sdk.sh
Mike Hommey 49b4329f1c Bug 1788854 - Upgrade MacOS SDK to 11.3. r=firefox-build-system-reviewers,andi
We keep the older 11.0 and 10.11 SDKs for openh264.

Ideally, we'd rename the SDK directory not to contain its version, but
ld64 actually relies on the directory name to figure out the platform
version when it's not given to it, which it's not. We can make clang do
that, but it's rather involved (because it also requires setting up the
host linker properly, which we don't do), so we just go the easy route
and keep the SDK version in its directory.

Differential Revision: https://phabricator.services.mozilla.com/D156279
2022-09-04 21:07:01 +00:00

18 lines
273 B
Bash
Executable file

#!/bin/bash
set -x
set -e
set -o pipefail
PKG=$1
SHA256=$2
SDK_DIR=$3
curl -OL $PKG
shasum -a 256 -c <<EOF
$SHA256 $(basename $PKG)
EOF
pkgutil --expand-full $(basename $PKG) pkg/
mv pkg/Payload/$SDK_DIR $(basename $SDK_DIR)
$(dirname $0)/pack.sh $(basename $SDK_DIR)