-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuildvgl.macos
More file actions
executable file
·43 lines (36 loc) · 964 Bytes
/
buildvgl.macos
File metadata and controls
executable file
·43 lines (36 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
set -u
set -e
SCRIPTDIR=`dirname $0`
if ls $OUTDIR/files/VirtualGL-[0-9]*.dmg >/dev/null 2>&1; then
if [ $FORCEBINARY = 0 ]; then
>&2 echo
>&2 echo Binary already exists!
>&2 echo Run $SCRIPT -fb to rebuild it.
>&2 echo
exit 1
else
rm -f $OUTDIR/files/VirtualGL*.dmg
fi
fi
exec 2>&1
export LD_LIBRARY_PATH=
pushd VirtualGL-[0-9]*
if [ -f $SCRIPTDIR/setupscripts/macsign ]; then
. $SCRIPTDIR/setupscripts/macsign
fi
mkdir macos
pushd macos
$SCRIPTDIR/setupscripts/macos
export NUMCPUS=`sysctl -n hw.ncpu`
make -j$NUMCPUS --load-average=$NUMCPUS dmg
if [ -n "${MACOS_NOTARIZE_ID-}" -a -n "${MACOS_NOTARIZE_TEAM_ID-}" -a \
-n "${MACOS_NOTARIZE_PASS-}" ]; then
echo VirtualGL-[0-9]*.dmg ...
xcrun notarytool submit VirtualGL-[0-9]*.dmg \
--apple-id $MACOS_NOTARIZE_ID --team-id $MACOS_NOTARIZE_TEAM_ID \
--password $MACOS_NOTARIZE_PASS --wait
xcrun stapler staple VirtualGL-[0-9]*.dmg
fi
mv VirtualGL-[0-9]*.dmg $OUTDIR/files/
popd
popd