Debian Codegraph @

contrib/msi/build.sh

raw symbols SCIP
1 #! /bin/shscip-shell filesystem . . `/bin/sh`.
2
3 version=0.0.0
4 gitver=$(gitscip-shell system . . git. describe --tags --always --match="[0-9]*.[0-9]*.[0-9]*" --exclude='*[^0-9.]*')
5 if [scip-shell system . . `[`. "$gitver" != "" ]; then
6 version=$gitver
7 fi
8
9 # build the image by running: docker build . -f Dockerfile -t ubuntu:dnscrypt-msi
10 if [scip-shell system . . `[`. "$(docker image list -q ubuntu:dnscrypt-msi)" = "" ]; then
11 docker build . -f Dockerfile -t ubuntu:dnscrypt-msi
12 fi
13
14 image=ubuntu:dnscrypt-msi
15
16 for arch in x64 x86; do
17 binpath="win32"
18 if [scip-shell system . . `[`. "$arch" = "x64" ]; then
19 binpath="win64"
20 fi
21 src=$(
22 cd ../../dnscrypt-proxy/$binpath || exit
23 pwdscip-shell system . . pwd.
24 )
25 echoscip-shell system . . echo. "$src"
26
27 docker run --rm -v "$(pwdscip-shell system . . pwd.)":/wixproj -v "$src":/src $image wine candle.exe -dVersion="$version" -dPlatform=$arch -dPath=\\src -arch $arch \\wixproj\\dnscrypt.wxs -out \\wixproj\\dnscrypt-$arch.wixobj
28 docker run --rm -v "$(pwdscip-shell system . . pwd.)":/wixproj -v "$src":/src $image wine light.exe -out \\wixproj\\dnscrypt-proxy-$arch-"$version".msi \\wixproj\\dnscrypt-$arch.wixobj -sval
29
30 done