mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
express dropped support for node 0.8; update engine requirements
This commit is contained in:
parent
d0b39c01fb
commit
63cbab484d
4 changed files with 5 additions and 5 deletions
|
@ -22,7 +22,7 @@ Also, check out the **[FAQ](https://github.com/ether/etherpad-lite/wiki/FAQ)**,
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
Etherpad works with node v0.8, v0.10 and v0.11, only. (We don't support v0.6)
|
Etherpad works with node v0.10 and v0.11, only. (We don't support v0.6 or v0.8)
|
||||||
|
|
||||||
## Windows
|
## Windows
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
NODE_VERSION="0.8.4"
|
NODE_VERSION="0.10.38"
|
||||||
|
|
||||||
#Move to the folder where ep-lite is installed
|
#Move to the folder where ep-lite is installed
|
||||||
cd `dirname $0`
|
cd `dirname $0`
|
||||||
|
|
|
@ -50,9 +50,9 @@ NODE_V_MINOR=$(echo $NODE_VERSION | cut -d "." -f 1-2)
|
||||||
if hash iojs 2>/dev/null; then
|
if hash iojs 2>/dev/null; then
|
||||||
IOJS_VERSION=$(iojs --version)
|
IOJS_VERSION=$(iojs --version)
|
||||||
fi
|
fi
|
||||||
if [ ! $NODE_V_MINOR = "v0.8" ] && [ ! $NODE_V_MINOR = "v0.10" ] && [ ! $NODE_V_MINOR = "v0.11" ] && [ ! $NODE_V_MINOR = "v0.12" ]; then
|
if [ ! $NODE_V_MINOR = "v0.10" ] && [ ! $NODE_V_MINOR = "v0.11" ] && [ ! $NODE_V_MINOR = "v0.12" ]; then
|
||||||
if [ ! $IOJS_VERSION ]; then
|
if [ ! $IOJS_VERSION ]; then
|
||||||
echo "You're running a wrong version of node, or io.js is not installed. You're using $NODE_VERSION, we need v0.8.x, v0.10.x, v0.11.x or v0.12.x" >&2
|
echo "You're running a wrong version of node, or io.js is not installed. You're using $NODE_VERSION, we need v0.10.x, v0.11.x or v0.12.x" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -8,7 +8,7 @@ cmd /C node -e "" || ( echo "Please install node.js ( http://nodejs.org )" && ex
|
||||||
|
|
||||||
echo _
|
echo _
|
||||||
echo Checking node version...
|
echo Checking node version...
|
||||||
set check_version="if(['8','10'].indexOf(process.version.split('.')[1].toString()) === -1) { console.log('You are running a wrong version of Node. Etherpad requires v0.8.x or v0.10.x'); process.exit(1) }"
|
set check_version="if(['10'].indexOf(process.version.split('.')[1].toString()) === -1) { console.log('You are running a wrong version of Node. Etherpad requires v0.10.x'); process.exit(1) }"
|
||||||
cmd /C node -e %check_version% || exit /B 1
|
cmd /C node -e %check_version% || exit /B 1
|
||||||
|
|
||||||
echo _
|
echo _
|
||||||
|
|
Loading…
Reference in a new issue