From 1ff643ddcef2ae28155ad1181422d9adeebceb02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20L=C3=B6nnhager?= Date: Mon, 9 Dec 2024 11:39:53 +0100 Subject: [PATCH] make buildserver-build.sh backwards compatible --- ci/buildserver-build.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ci/buildserver-build.sh b/ci/buildserver-build.sh index 75561c8b1505..139b7cc5dca3 100755 --- a/ci/buildserver-build.sh +++ b/ci/buildserver-build.sh @@ -196,8 +196,12 @@ function build_ref { if [[ "$(uname -s)" == "Darwin" ]]; then build_args+=(--universal --notarize) fi + SUPPORTS_UNIVERSAL_WIN=[[ -d ]] if [[ "$(uname -s)" == "MINGW"* ]]; then - build_args+=(--universal) + if [[ -d "$BUILD_DIR/windows-installer" ]]; then + # build universal build if supported + build_args+=(--universal) + fi fi artifact_dir=$artifact_dir build "${build_args[@]}" || return 1 @@ -208,6 +212,11 @@ function build_ref { case "$(uname -s)" in MINGW*|MSYS_NT*) + if [[ ! -d "$BUILD_DIR/windows-installer" ]]; then + echo "Building ARM64 installers" + target=aarch64-pc-windows-msvc artifact_dir=$artifact_dir build "${build_args[@]}" || return 1 + fi + echo "Packaging all PDB files..." find ./windows/ \ ./target/release/mullvad-daemon.pdb \