From b38c428e827ba484121ce107e6f0da0f682ba415 Mon Sep 17 00:00:00 2001 From: Radu Tutueanu Date: Thu, 10 Nov 2016 13:51:37 +0100 Subject: [PATCH 1/2] Use dependencies.list Fixes #644 --- dependencies.list | 5 +++-- package.json | 3 ++- scripts/download-core.sh | 6 ++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/dependencies.list b/dependencies.list index a19e1436..6e4c7a6b 100644 --- a/dependencies.list +++ b/dependencies.list @@ -1,4 +1,5 @@ PACKAGE_NAME=realm-js -VERSION=1.0.0-BETA-1.0 -REALM_SYNC_VERSION=1.0.0-BETA-3.1 +VERSION=0.14.3-6 +REALM_CORE_VERSION=2.1.4 +REALM_SYNC_VERSION=1.0.0-BETA-3.3 REALM_OBJECT_SERVER_VERSION=1.0.0-BETA-2.1 diff --git a/package.json b/package.json index 7fde0825..2aaa3fa4 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,8 @@ "scripts", "src", "vendor", - "binding.gyp" + "binding.gyp", + "dependencies.list", ], "scripts": { "get-version": "echo $npm_package_version", diff --git a/scripts/download-core.sh b/scripts/download-core.sh index 3aeee2e5..10f82949 100755 --- a/scripts/download-core.sh +++ b/scripts/download-core.sh @@ -3,9 +3,11 @@ set -e set -o pipefail +source_root="$(dirname "$0")" + # Set to "latest" for the latest build. -: ${REALM_CORE_VERSION:=2.1.4} -: ${REALM_SYNC_VERSION:=1.0.0-BETA-3.3} +: ${REALM_CORE_VERSION:=$(sed -n 's/^REALM_CORE_VERSION=\(.*\)$/\1/p' ${source_root}/../dependencies.list)} +: ${REALM_SYNC_VERSION:=$(sed -n 's/^REALM_SYNC_VERSION=\(.*\)$/\1/p' ${source_root}/../dependencies.list)} if [ "$1" = '--version' ]; then echo "$REALM_CORE_VERSION" From 63371d1e2bbb8f94456a7ee4bcb39fbdc37a070d Mon Sep 17 00:00:00 2001 From: Radu Tutueanu Date: Thu, 10 Nov 2016 13:57:06 +0100 Subject: [PATCH 2/2] Fix package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2aaa3fa4..3d0362e3 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "src", "vendor", "binding.gyp", - "dependencies.list", + "dependencies.list" ], "scripts": { "get-version": "echo $npm_package_version",