Debian Codegraph @

contrib/msi/build.sh

raw symbols SCIP
1 #! /bin/sh
2
3 version=0.0.0
4 gitver=$(git describe --tags --always --match="[0-9]*.[0-9]*.[0-9]*" --exclude='*[^0-9.]*')
5 if [ "$gitver" != "" ]; then
6 version=$gitver
7 fi
8
9 # build the image by running: docker build . -f Dockerfile -t ubuntu:dnscrypt-msi
10 if [ "$(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 [ "$arch" = "x64" ]; then
19 binpath="win64"
20 fi
21 src=$(
22 cd ../../dnscrypt-proxy/$binpath || exit
23 pwd
24 )
25 echo "$src"
26
27 docker run --rm -v "$(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 "$(pwd)":/wixproj -v "$src":/src $image wine light.exe -out \\wixproj\\dnscrypt-proxy-$arch-"$version".msi \\wixproj\\dnscrypt-$arch.wixobj -sval
29
30 done