-
Notifications
You must be signed in to change notification settings - Fork 5
/
buildvnc.windows
executable file
·52 lines (44 loc) · 1.08 KB
/
buildvnc.windows
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
set -u
set -e
SCRIPTDIR=`dirname $0`
if ls $OUTDIR/files/TurboVNC*.exe >/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*.exe
fi
fi
exec 2>&1
$SCRIPTDIR/openjdk.install
export JAVA_HOME=/opt/openjdk17
export PATH=/opt/openjdk17/bin:$PATH
pushd turbovnc-[0-9]*
mkdir win64
pushd win64
$SCRIPTDIR/setupscripts/win64
ninja installer
ninja
mv TurboVNC-[0-9]*-x64.exe $OUTDIR/files/
if [ -f $SCRIPTDIR/mssign ]; then
. $SCRIPTDIR/mssign
signtool sign -f "$MS_KEY_FILE" -t "$MS_TSA_URL" -p "$MS_KEY_PASS" $OUTDIR/files/TurboVNC-[0-9]*-x64.exe
signtool verify -pa $OUTDIR/files/TurboVNC-[0-9]*-x64.exe
fi
popd
. $SCRIPTDIR/vc32
mkdir win32
pushd win32
$SCRIPTDIR/setupscripts/win32
ninja installer
ninja
mv TurboVNC-[0-9]*-x86.exe $OUTDIR/files/
if [ -f $SCRIPTDIR/mssign ]; then
signtool sign -f "$MS_KEY_FILE" -t "$MS_TSA_URL" -p "$MS_KEY_PASS" $OUTDIR/files/TurboVNC-[0-9]*-x86.exe
signtool verify -pa $OUTDIR/files/TurboVNC-[0-9]*-x86.exe
fi
popd
popd