Use dependencies.list

Fixes  #644
This commit is contained in:
Radu Tutueanu 2016-11-10 13:51:37 +01:00
parent 6a257d594e
commit b38c428e82
3 changed files with 9 additions and 5 deletions

View File

@ -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

View File

@ -36,7 +36,8 @@
"scripts",
"src",
"vendor",
"binding.gyp"
"binding.gyp",
"dependencies.list",
],
"scripts": {
"get-version": "echo $npm_package_version",

View File

@ -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"