diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2018-06-08 11:14:50 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2018-06-08 11:14:50 +0200 |
| commit | 7fb6830668a6eb40aa37b9cee2d69ca0217c6042 (patch) | |
| tree | 8c1d5440ca0d932e96bb72d1849ee7abdf9c187e /build.sh | |
| parent | f4cc460ca56298d3cc270c64eb63cc25ff763c29 (diff) | |
| parent | d659bae3b2effb336970e1b16d33f19f3b68bf66 (diff) | |
| download | mullvadvpn-7fb6830668a6eb40aa37b9cee2d69ca0217c6042.tar.xz mullvadvpn-7fb6830668a6eb40aa37b9cee2d69ca0217c6042.zip | |
Merge branch 'windows_installer'
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 28 |
1 files changed, 17 insertions, 11 deletions
@@ -44,23 +44,28 @@ if [[ "$(uname -s)" = "Darwin" ]]; then fi fi - # Remove binaries. To make sure it is rebuilt with the stable toolchain and the latest changes. cargo +stable clean +if [[ "$(uname -s)" == "MINGW"* ]]; then + ./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 @@ -72,6 +77,7 @@ echo "Packing final release artifact..." case "$(uname -s)" in Linux*) yarn pack:linux;; Darwin*) yarn pack:mac;; + MINGW*) yarn pack:win;; esac RELEASE_VERSION=`./target/release/mullvad-daemon --version | cut -f2 -d' '` |
