diff options
Diffstat (limited to '')
-rwxr-xr-x | taskcluster/scripts/misc/pack-macos-sdk.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/taskcluster/scripts/misc/pack-macos-sdk.sh b/taskcluster/scripts/misc/pack-macos-sdk.sh new file mode 100755 index 0000000000..59fd49e176 --- /dev/null +++ b/taskcluster/scripts/misc/pack-macos-sdk.sh @@ -0,0 +1,18 @@ +#!/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) |