forked from Silverfish/proton-bridge
Other: also install vcpkg ARM64 on Intel mac hosts.
This commit is contained in:
@ -54,7 +54,6 @@ BRIDGE_APP_FULL_NAME=${BRIDGE_APP_FULL_NAME:-"Proton Mail Bridge"}
|
|||||||
BRIDGE_VENDOR=${BRIDGE_VENDOR:-"Proton AG"}
|
BRIDGE_VENDOR=${BRIDGE_VENDOR:-"Proton AG"}
|
||||||
BUILD_CONFIG=${BRIDGE_GUI_BUILD_CONFIG:-Debug}
|
BUILD_CONFIG=${BRIDGE_GUI_BUILD_CONFIG:-Debug}
|
||||||
BUILD_DIR=$(echo "./cmake-build-${BUILD_CONFIG}" | tr '[:upper:]' '[:lower:]')
|
BUILD_DIR=$(echo "./cmake-build-${BUILD_CONFIG}" | tr '[:upper:]' '[:lower:]')
|
||||||
VCPKG_OSX_DEPLOYMENT_TARGET=11.0
|
|
||||||
VCPKG_ROOT="${BRIDGE_REPO_ROOT}/extern/vcpkg"
|
VCPKG_ROOT="${BRIDGE_REPO_ROOT}/extern/vcpkg"
|
||||||
|
|
||||||
git submodule update --init --recursive ${VCPKG_ROOT}
|
git submodule update --init --recursive ${VCPKG_ROOT}
|
||||||
@ -70,10 +69,8 @@ ${VCPKG_BOOTSTRAP} -disableMetrics
|
|||||||
check_exit "Failed to bootstrap vcpkg."
|
check_exit "Failed to bootstrap vcpkg."
|
||||||
|
|
||||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
if [[ "$(uname -m)" == "arm64" ]]; then
|
${VCPKG_EXE} install grpc:arm64-osx-min-11-0 --overlay-triplets=vcpkg/triplets --clean-after-build
|
||||||
${VCPKG_EXE} install grpc:arm64-osx-min-11-0 --overlay-triplets=vcpkg/triplets --clean-after-build
|
check_exit "Failed installing gRPC for macOS / Apple Silicon"
|
||||||
check_exit "Failed installing gRPC for macOS / Apple Silicon"
|
|
||||||
fi
|
|
||||||
${VCPKG_EXE} install grpc:x64-osx-min-11-0 --overlay-triplets=vcpkg/triplets --clean-after-build
|
${VCPKG_EXE} install grpc:x64-osx-min-11-0 --overlay-triplets=vcpkg/triplets --clean-after-build
|
||||||
check_exit "Failed installing gRPC for macOS / Intel x64"
|
check_exit "Failed installing gRPC for macOS / Intel x64"
|
||||||
elif [[ "$OSTYPE" == "linux"* ]]; then
|
elif [[ "$OSTYPE" == "linux"* ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user