summaryrefslogtreecommitdiffstats
path: root/taskcluster/scripts/misc/pack-macos-sdk.sh
blob: 59fd49e17636ae2c12d26c456612ba1f1711a732 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)