File tree Expand file tree Collapse file tree 2 files changed +15
-14
lines changed Expand file tree Collapse file tree 2 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Docker test image for building an MSI locally
4
4
5
- ```
5
+ ``` sh
6
6
docker build . -f Dockerfile -t ubuntu:dnscrypt-msi
7
7
```
8
8
9
9
## Test building msi files for intel win32 & win64
10
10
11
- ```
11
+ ``` sh
12
12
./build.sh
13
13
```
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /bin/sh
2
2
3
3
version=0.0.0
4
4
gitver=$( git describe --tags --always --match=" [0-9]*.[0-9]*.[0-9]*" --exclude=' *[^0-9.]*' )
5
- if [[ " $gitver " != " " ] ]; then
6
- version=$gitver
5
+ if [ " $gitver " != " " ]; then
6
+ version=$gitver
7
7
fi
8
8
9
9
# build the image by running: docker build . -f Dockerfile -t ubuntu:dnscrypt-msi
10
- if [[ " $( docker image list -q ubuntu:dnscrypt-msi) " == " " ] ]; then
10
+ if [ " $( docker image list -q ubuntu:dnscrypt-msi) " = " " ]; then
11
11
docker build . -f Dockerfile -t ubuntu:dnscrypt-msi
12
12
fi
13
13
14
14
image=ubuntu:dnscrypt-msi
15
15
16
-
17
- for arch in x64 x86
18
- do
16
+ for arch in x64 x86; do
19
17
binpath=" win32"
20
- if [[ " $arch " == " x64" ] ]; then
18
+ if [ " $arch " = " x64" ]; then
21
19
binpath=" win64"
22
20
fi
23
- src=$( cd ../../dnscrypt-proxy/$binpath ; pwd)
24
- echo $src
21
+ src=$(
22
+ cd ../../dnscrypt-proxy/$binpath || exit
23
+ pwd
24
+ )
25
+ echo " $src "
25
26
26
- 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
27
- 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
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
28
29
29
30
done
You can’t perform that action at this time.
0 commit comments