diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2018-09-14 13:38:25 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2018-09-14 13:38:25 +0200 |
| commit | c89f9a663e36d13614832126d4ca61f36362ca35 (patch) | |
| tree | e6aaee6ab1f9354f2c2e8424fd7f88e8c9d87f87 | |
| parent | a1de09210eb1f4b0c9b1c719dd8f715f70ff144b (diff) | |
| parent | 0cb91e05e3665ed215624bda15293e8eb9058a04 (diff) | |
| download | mullvadvpn-c89f9a663e36d13614832126d4ca61f36362ca35.tar.xz mullvadvpn-c89f9a663e36d13614832126d4ca61f36362ca35.zip | |
Merge branch 'windows-no-signing'
| -rwxr-xr-x | build.sh | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -36,7 +36,7 @@ if [[ "${1:-""}" != "--dev-build" ]]; then exit 1 fi - if [[ ("$(uname -s)" == "Darwin") || ("$(uname -s)" == "MINGW"*) ]]; then + if [[ ("$(uname -s)" == "Darwin") ]]; then echo "Configuring environment for signing of binaries" if [[ -z ${CSC_LINK-} ]]; then echo "The variable CSC_LINK is not set. It needs to point to a file containing the" @@ -58,13 +58,16 @@ if [[ "${1:-""}" != "--dev-build" ]]; then cargo +stable clean else echo "!! Development build. Not for general distribution !!" - GIT_COMMIT=$(git rev-parse --short HEAD) - PRODUCT_VERSION="$PRODUCT_VERSION-dev-$GIT_COMMIT" - unset CSC_LINK CSC_KEY_PASSWORD export CSC_IDENTITY_AUTO_DISCOVERY=false fi +if [[ "${1:-""}" == "--dev-build" || $(git describe) != "$PRODUCT_VERSION" ]]; then + GIT_COMMIT=$(git rev-parse --short HEAD) + PRODUCT_VERSION="$PRODUCT_VERSION-dev-$GIT_COMMIT" + echo "Modifying product version to $PRODUCT_VERSION" +fi + echo "Building Mullvad VPN $PRODUCT_VERSION" SEMVER_VERSION=$(echo $PRODUCT_VERSION | sed -Ee 's/($|-.*)/.0\1/g') |
