Skip to content

Commit 1ff643d

Browse files
committed
make buildserver-build.sh backwards compatible
1 parent 7e2c333 commit 1ff643d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ci/buildserver-build.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,12 @@ function build_ref {
196196
if [[ "$(uname -s)" == "Darwin" ]]; then
197197
build_args+=(--universal --notarize)
198198
fi
199+
SUPPORTS_UNIVERSAL_WIN=[[ -d ]]
199200
if [[ "$(uname -s)" == "MINGW"* ]]; then
200-
build_args+=(--universal)
201+
if [[ -d "$BUILD_DIR/windows-installer" ]]; then
202+
# build universal build if supported
203+
build_args+=(--universal)
204+
fi
201205
fi
202206

203207
artifact_dir=$artifact_dir build "${build_args[@]}" || return 1
@@ -208,6 +212,11 @@ function build_ref {
208212

209213
case "$(uname -s)" in
210214
MINGW*|MSYS_NT*)
215+
if [[ ! -d "$BUILD_DIR/windows-installer" ]]; then
216+
echo "Building ARM64 installers"
217+
target=aarch64-pc-windows-msvc artifact_dir=$artifact_dir build "${build_args[@]}" || return 1
218+
fi
219+
211220
echo "Packaging all PDB files..."
212221
find ./windows/ \
213222
./target/release/mullvad-daemon.pdb \

0 commit comments

Comments
 (0)