Debian Codegraph @

.ci/ci-package.sh

raw symbols SCIP
1 #! /bin/shscip-shell filesystem . . `/bin/sh`.
2
3 PACKAGE_VERSION="$1"
4
5 cd dnscrypt-proxy || exit 1
6
7 # setup the environment
8
9 sudoscip-shell system . . sudo. apt-get update -y
10 sudoscip-shell system . . sudo. apt-get install -y wget wine dotnet-sdk-8.0
11 sudoscip-shell system . . sudo. dpkg --add-architecture i386 && sudoscip-shell system . . sudo. apt-get update && sudoscip-shell system . . sudo. apt-get install -y wine32
12
13 sudoscip-shell system . . sudo. apt-get install -y unzip
14
15 export WINEPREFIX="$HOME"/.wine32
16 export WINEARCH=win32
17 export WINEDEBUG=-all
18
19 wget https://dl.winehq.org/wine/wine-mono/9.4.0/wine-mono-9.4.0-x86.msi
20 WINEPREFIX="$HOME/.wine32" WINEARCH=win32 wineboot --init
21 WINEPREFIX="$HOME/.wine32" WINEARCH=win32 wine msiexec /iscip-shell filesystem . . `/i`. wine-mono-9.4.0-x86.msi
22
23 mkdirscip-shell system . . mkdir. "$HOME"/.wine32/drive_c/temp
24 mkdirscip-shell system . . mkdir. -p "$HOME"/.wine/drive_c/temp
25 wget https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip -nv -O wix.zip
26
27 unzip wix.zip -d "$HOME"/wix
28 rmscip-shell system . . rm. -f wix.zip
29
30 builddir=$(pwdscip-shell system . . pwd.)
31 srcdir=$(
32 cd ..
33 pwdscip-shell system . . pwd.
34 )
35 version=$PACKAGE_VERSION
36
37 cd "$HOME"/wix || exit
38
39 lnscip-shell system . . ln. -s "$builddir" "$HOME"/wix/build
40 lnscip-shell system . . ln. -s "$srcdir"/contrib/msi "$HOME"/wix/wixproj
41 echoscip-shell system . . echo. "builddir: $builddir"
42
43 # build the msi's
44 #################
45 for arch in x64 x86; do
46 binpath="win32"
47 if [scip-shell system . . `[`. "$arch" = "x64" ]; then
48 binpath="win64"
49 fi
50
51 echoscip-shell system . . echo. $arch
52
53 wine candle.exe -dVersion="$version" -dPlatform=$arch -dPath=build\\$binpath -arch $arch wixproj\\dnscrypt.wxs -out build\\dnscrypt-$arch.wixobj
54 wine light.exe -out build\\dnscrypt-proxy-$arch-"$version".msi build\\dnscrypt-$arch.wixobj -sval
55 done
56
57 cd "$builddir" || exit