diff --git a/.github/workflows/build-qv2ray.yml b/.github/workflows/build-qv2ray.yml index 1566b544..35faa415 100644 --- a/.github/workflows/build-qv2ray.yml +++ b/.github/workflows/build-qv2ray.yml @@ -60,7 +60,9 @@ jobs: - name: macOS - Install Packages if: matrix.platform == 'macos-latest' - run: brew install protobuf + run: | + brew install protobuf + brew install grpc - name: Windows - Install Packages if: matrix.platform == 'windows-latest' diff --git a/makespec/04-unix-macOS.pri b/makespec/04-unix-macOS.pri index 5cdb9fe4..6c6f0032 100644 --- a/makespec/04-unix-macOS.pri +++ b/makespec/04-unix-macOS.pri @@ -3,9 +3,14 @@ message(" ") # For Linux and macOS message("Configuring for macOS specific environment") LIBS += -framework Carbon -framework Cocoa - -use_grpc: error("The use of gRPC backend is not supported on macOS platform.") - -message(" --> Linking libqvb static library and Security framework, for macOS platform.") -LIBS += -L$$PWD/../libs/ -lqvb-darwin +message(" --> Linking Security framework, for macOS platform.") LIBS += -framework Security + +use_grpc { + # For gRPC and protobuf in macOS + message(" --> Linking against gRPC library.") + LIBS += -L/usr/local/lib -lgrpc++ -lgrpc -lgpr -lupb +} else { + message(" --> Linking libqvb static library, for macOS platform.") + LIBS += -L$$PWD/../libs/ -lqvb-darwin +} diff --git a/makespec/BUILDVERSION b/makespec/BUILDVERSION index 9bb70db0..30ee12d5 100644 --- a/makespec/BUILDVERSION +++ b/makespec/BUILDVERSION @@ -1 +1 @@ -3862 +3867