summaryrefslogtreecommitdiffhomepage
path: root/build.sh
diff options
context:
space:
mode:
authorOdd Stranne <odd@mullvad.net>2018-05-29 15:48:46 +0200
committerLinus Färnstrand <linus@mullvad.net>2018-06-08 11:13:04 +0200
commitdbee096e51ce75b63fbfcbc2a89b3c74bdc83f31 (patch)
tree578ed5d03a8f9d4940ebe9ce079e77511534edc7 /build.sh
parent0f20e41883fbfeca1e7dddf5bcd3e7b72572b6a2 (diff)
downloadmullvadvpn-dbee096e51ce75b63fbfcbc2a89b3c74bdc83f31.tar.xz
mullvadvpn-dbee096e51ce75b63fbfcbc2a89b3c74bdc83f31.zip
Do not strip binaries on Windows
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh23
1 files changed, 13 insertions, 10 deletions
diff --git a/build.sh b/build.sh
index c6308cc766..7b0e791731 100755
--- a/build.sh
+++ b/build.sh
@@ -48,21 +48,24 @@ fi
cargo +stable clean
if [[ "$(uname -s)" == "MINGW"* ]]; then
- ./build_winfw.sh
+ ./build_winfw.sh
fi
echo "Compiling mullvad-daemon in release mode with $RUSTC_VERSION..."
cargo +stable build --release
-binaries=(
- ./target/release/mullvad-daemon
- ./target/release/mullvad
- ./target/release/problem-report
-)
-for binary in ${binaries[*]}; do
- echo "Stripping debugging symbols from $binary"
- strip $binary
-done
+# Only strip binaries on platforms other than Windows.
+if [[ "$(uname -s)" != "MINGW"* ]]; then
+ binaries=(
+ ./target/release/mullvad-daemon
+ ./target/release/mullvad
+ ./target/release/problem-report
+ )
+ for binary in ${binaries[*]}; do
+ echo "Stripping debugging symbols from $binary"
+ strip $binary
+ done
+fi
echo "Updating relay list..."
./target/release/list-relays > dist-assets/relays.json