Skip to content

Commit

Permalink
make buildserver-build.sh backwards compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Dec 9, 2024
1 parent 7e2c333 commit b627a7c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ci/buildserver-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
Expand Down

0 comments on commit b627a7c

Please sign in to comment.