This is an automated email from the ASF dual-hosted git repository.
mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-client-node.git
The following commit(s) were added to refs/heads/master by this push:
new 4a7cc02 Fetch C++ client official release (#244)
4a7cc02 is described below
commit 4a7cc021fe86f361884d68a52dba62b30f80abae
Author: Baodi Shi <[email protected]>
AuthorDate: Sat Nov 5 23:40:11 2022 +0800
Fetch C++ client official release (#244)
---
build-support/install-cpp-client.sh | 7 +++----
package.json | 2 +-
pkg/mac/build-cpp-lib.sh | 4 ++--
3 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/build-support/install-cpp-client.sh
b/build-support/install-cpp-client.sh
index 5f1df51..51134a5 100755
--- a/build-support/install-cpp-client.sh
+++ b/build-support/install-cpp-client.sh
@@ -33,8 +33,7 @@ export $(cat /etc/*-release | grep "^ID=")
cd /tmp
# Fetch the client binaries
-## TODO: Fetch from official release once it's available
-BASE_URL=https://dist.apache.org/repos/dist/dev/pulsar/pulsar-client-cpp-${CPP_CLIENT_VERSION}-candidate-2
+BASE_URL=https://dist.apache.org/repos/dist/release/pulsar/pulsar-client-cpp-${CPP_CLIENT_VERSION}
UNAME_ARCH=$(uname -m)
if [ $UNAME_ARCH == 'aarch64' ]; then
@@ -49,8 +48,8 @@ if [ $ID == 'ubuntu' -o $ID == 'debian' ]; then
$SUDO apt install -y /tmp/*.deb
elif [ $ID == 'alpine' ]; then
- curl -L -O
${BASE_URL}/apk-${PLATFORM}/apache-pulsar-client-${CPP_CLIENT_VERSION}-r0.apk
- curl -L -O
${BASE_URL}/apk-${PLATFORM}/apache-pulsar-client-dev-${CPP_CLIENT_VERSION}-r0.apk
+ curl -L -O
${BASE_URL}/apk-${PLATFORM}/${UNAME_ARCH}/apache-pulsar-client-${CPP_CLIENT_VERSION}-r0.apk
+ curl -L -O
${BASE_URL}/apk-${PLATFORM}/${UNAME_ARCH}/apache-pulsar-client-dev-${CPP_CLIENT_VERSION}-r0.apk
$SUDO apk add --allow-untrusted /tmp/*.apk
elif [ $ID == '"centos"' ]; then
diff --git a/package.json b/package.json
index 7b23ccc..30bb051 100644
--- a/package.json
+++ b/package.json
@@ -61,7 +61,7 @@
"binary": {
"module_name": "Pulsar",
"module_path": "./lib/binding/",
- "host":
"https://dist.apache.org/repos/dist/dev/pulsar/pulsar-client-node/",
+ "host":
"https://dist.apache.org/repos/dist/release/pulsar/pulsar-client-node/",
"remote_path": "pulsar-client-node-{version}",
"package_name": "napi-{platform}-{libc}-{arch}.tar.gz"
},
diff --git a/pkg/mac/build-cpp-lib.sh b/pkg/mac/build-cpp-lib.sh
index e169422..67402d0 100755
--- a/pkg/mac/build-cpp-lib.sh
+++ b/pkg/mac/build-cpp-lib.sh
@@ -25,8 +25,8 @@ PULSAR_PREFIX=${PULSAR_DIR}/install
mkdir -p $PULSAR_PREFIX
cd $PULSAR_DIR
-## TODO: Fetch from official release
-curl -O -L
https://dist.apache.org/repos/dist/dev/pulsar/pulsar-client-cpp-${PULSAR_CPP_VERSION}-candidate-2/apache-pulsar-client-cpp-${PULSAR_CPP_VERSION}.tar.gz
+## Fetch from official release
+curl -O -L
https://dist.apache.org/repos/dist/release/pulsar/pulsar-client-cpp-${PULSAR_CPP_VERSION}/apache-pulsar-client-cpp-${PULSAR_CPP_VERSION}.tar.gz
tar xfz apache-pulsar-client-cpp-${PULSAR_CPP_VERSION}.tar.gz
pushd apache-pulsar-client-cpp-${PULSAR_CPP_VERSION}
chmod +x ./build-support/merge_archives.sh