-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuildvgl.windows
executable file
·48 lines (41 loc) · 1.02 KB
/
buildvgl.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
set -u
set -e
SCRIPTDIR=`dirname $0`
if ls $OUTDIR/files/VirtualGL*.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/VirtualGL*.exe
fi
fi
exec 2>&1
pushd VirtualGL-[0-9]*
mkdir win64
pushd win64
$SCRIPTDIR/setupscripts/win
nmake installer 2>&1
nmake 2>&1
mv VirtualGL*.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/VirtualGL-Utils-[0-9]*-x64.exe
signtool verify -pa $OUTDIR/files/VirtualGL-Utils-[0-9]*-x64.exe
fi
popd
. $SCRIPTDIR/vc32
mkdir win32
pushd win32
$SCRIPTDIR/setupscripts/win
nmake installer 2>&1
nmake 2>&1
mv VirtualGL*.exe $OUTDIR/files/
if [ -f $SCRIPTDIR/mssign ]; then
signtool sign -f "$MS_KEY_FILE" -t "$MS_TSA_URL" -p "$MS_KEY_PASS" $OUTDIR/files/VirtualGL-Utils-[0-9]*-x86.exe
signtool verify -pa $OUTDIR/files/VirtualGL-Utils-[0-9]*-x86.exe
fi
popd
popd