-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuildvnc.macos
More file actions
executable file
·57 lines (48 loc) · 1.36 KB
/
buildvnc.macos
File metadata and controls
executable file
·57 lines (48 loc) · 1.36 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
set -u
set -e
SCRIPTDIR=`dirname $0`
if ls $OUTDIR/files/TurboVNC-[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/TurboVNC*.dmg
fi
fi
exec 2>&1
$SCRIPTDIR/openjdk.install
export LD_LIBRARY_PATH=
pushd turbovnc-[0-9]*
if [ -f $SCRIPTDIR/setupscripts/macsign ]; then
. $SCRIPTDIR/setupscripts/macsign
fi
mkdir macosarm64
pushd macosarm64
$SCRIPTDIR/setupscripts/macosarm64
make dmg
if [ -n "${MACOS_NOTARIZE_ID-}" -a -n "${MACOS_NOTARIZE_TEAM_ID-}" -a \
-n "${MACOS_NOTARIZE_PASS-}" ]; then
echo Notarizing TurboVNC-[0-9]*.dmg ...
xcrun notarytool submit TurboVNC-[0-9]*.dmg --apple-id $MACOS_NOTARIZE_ID \
--team-id $MACOS_NOTARIZE_TEAM_ID --password $MACOS_NOTARIZE_PASS --wait
xcrun stapler staple TurboVNC-[0-9]*.dmg
fi
mv TurboVNC-[0-9]*.dmg $OUTDIR/files/
popd
mkdir macos
pushd macos
$SCRIPTDIR/setupscripts/macosx8664
make dmg
if [ -n "${MACOS_NOTARIZE_ID-}" -a -n "${MACOS_NOTARIZE_TEAM_ID-}" -a \
-n "${MACOS_NOTARIZE_PASS-}" ]; then
echo Notarizing TurboVNC-[0-9]*.dmg ...
xcrun notarytool submit TurboVNC-[0-9]*.dmg --apple-id $MACOS_NOTARIZE_ID \
--team-id $MACOS_NOTARIZE_TEAM_ID --password $MACOS_NOTARIZE_PASS --wait
xcrun stapler staple TurboVNC-[0-9]*.dmg
fi
mv TurboVNC-[0-9]*.dmg $OUTDIR/files/
popd
popd