summaryrefslogtreecommitdiffhomepage
path: root/build-windows-modules.sh
diff options
context:
space:
mode:
authorLinus Färnstrand <faern@faern.net>2021-12-28 13:26:18 +0100
committerLinus Färnstrand <faern@faern.net>2021-12-30 10:53:04 +0100
commit433a4528ef6cef1932f5aa80b787cd7c7c2db461 (patch)
tree14065c7ebfd87f06e021caedc71961b44d0bdd2b /build-windows-modules.sh
parent819359490d4ae622b9fc655a6a97a41d5be295e9 (diff)
downloadmullvadvpn-433a4528ef6cef1932f5aa80b787cd7c7c2db461.tar.xz
mullvadvpn-433a4528ef6cef1932f5aa80b787cd7c7c2db461.zip
Improve build script to build debug by default and be more flexible
Defaults to unoptimized, unsigned, dev builds. New flags: --optimize - Turns on compiler optimization/compression --sign - Turns on siging of binaries (Windows + macOS)
Diffstat (limited to 'build-windows-modules.sh')
-rwxr-xr-xbuild-windows-modules.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/build-windows-modules.sh b/build-windows-modules.sh
index 0b18f5d6cf..8954ad6a72 100755
--- a/build-windows-modules.sh
+++ b/build-windows-modules.sh
@@ -9,18 +9,16 @@ CPP_BUILD_MODES=${CPP_BUILD_MODES:-"Debug"}
# Common platforms include "x86" and "x64".
CPP_BUILD_TARGETS=${CPP_BUILD_TARGETS:-"x64"}
-if [[ "${1:-""}" == "--dev-build" ]]; then
- DEV_BUILD=true
-fi
+IS_RELEASE=${IS_RELEASE:-"false"}
function clean_solution {
local path="$1"
- if [[ -z ${DEV_BUILD+x} ]]; then
+ if [[ "$IS_RELEASE" == "true" ]]; then
# Clean all intermediate and output files
rm -r "${path:?}/bin/"* || true
else
- echo "Will NOT clean intermediate files in $path/bin/"
+ echo "Will NOT clean intermediate files in $path/bin/ in dev builds"
fi
}