From 38416d46a6afea0eebaf2e51bc9c560248de43a2 Mon Sep 17 00:00:00 2001 From: "girish@cloudron.io" Date: Thu, 14 Jan 2016 10:55:26 -0800 Subject: [PATCH] insist on node 4.1.1 this is probably FUD but I think we get npm rebuild issues when trying to rebuild packages of a newer node to an older node. --- scripts/createReleaseTarball | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/createReleaseTarball b/scripts/createReleaseTarball index d477d10bf..f5093c5ce 100755 --- a/scripts/createReleaseTarball +++ b/scripts/createReleaseTarball @@ -49,6 +49,11 @@ if ! $(cd "${SOURCE_DIR}" && git diff --exit-code >/dev/null); then exit 1 fi +if [[ "$(node --version)" != "v4.1.1" ]]; then + echo "This script requires node 4.1.1" + exit 1 +fi + version=$(cd "${SOURCE_DIR}" && git rev-parse "${commitish}") bundle_dir=$(mktemp -d -t box 2>/dev/null || mktemp -d box-XXXXXXXXXX --tmpdir=$TMPDIR) [[ -z "$bundle_file" ]] && bundle_file="${TMPDIR}/box-${version}.tar.gz"