File: macos-make-universal.sh

package info (click to toggle)
ares 147%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 35,244 kB
  • sloc: cpp: 334,263; ansic: 98,696; sh: 123; makefile: 31
file content (33 lines) | stat: -rwxr-xr-x 886 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env sh
set -euo pipefail

cd "$(dirname "$0")"/.. || exit 1

otherArgs=()

if [ "${MACOS_CERTIFICATE_NAME:-}" != "" ]; then
  echo "Signing using certificate: ${MACOS_CERTIFICATE_NAME}"
  otherArgs+=("-DARES_CODESIGN_IDENTITY=${MACOS_CERTIFICATE_NAME}")
fi

if [ "${MACOS_NOTARIZATION_TEAMID:-}" != "" ]; then
  echo "Signing with team ID: ${MACOS_NOTARIZATION_TEAMID}"
  otherArgs+=("-DARES_CODESIGN_TEAM=${MACOS_NOTARIZATION_TEAMID}")
fi

cmake --preset macos "${@:-}" "${otherArgs:-}"

pushd build_macos

if ! command -v xcbeautify >/dev/null; then
    xcodebuild build -quiet -configuration RelWithDebInfo \
              DEBUG_INFORMATION_FORMAT="dwarf-with-dsym"
else
    xcodebuild -configuration RelWithDebInfo \
              DEBUG_INFORMATION_FORMAT="dwarf-with-dsym" \
              2>&1 | xcbeautify --renderer terminal
fi

open ./desktop-ui/RelWithDebInfo

popd