Mise à jour effectuée, merci de nous signaler tout dysfonctionnement ! | Upgrade done, please let us know about any dysfunction!

Commit 727be4db authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

rename scripts file + force nodejs v6

parent ac146f04
......@@ -4,7 +4,7 @@
This script will run Cesium Desktop, taking care of installing Cesium + Nw.js if necessary.
./test_cesium.sh
./run.sh
## Produce new release
......@@ -20,5 +20,5 @@ This script will produce for a given `TAG`:
To produce `TAG` 0.12.8:
./new_cesium.sh 0.12.8
./release.sh 0.12.8
\ No newline at end of file
......@@ -8,17 +8,33 @@ ARCH=`uname -m`
if [[ -z $TAG ]]; then
echo "Wrong call to the command, syntax is:"
echo ""
echo " new_cesium.sh <tag>"
echo " release.sh <tag>"
echo ""
echo "Examples:"
echo ""
echo " new_cesium.sh 1.2.3"
echo " new_cesium.sh 1.4.0"
echo " new_cesium.sh 1.4.1"
echo " release.sh 1.2.3"
echo " release.sh 1.4.0"
echo " release.sh 1.4.1"
echo ""
exit 1
fi
# Force nodejs version to 6
if [ -d "$NVM_DIR" ]; then
. $NVM_DIR/nvm.sh
nvm use 6
else
echo "nvm (Node version manager) not found (directory NVM_DIR not defined). Please install nvm, and retry"
exit -1
fi
# install dep if not already done
if [ ! -d "node_modules" ]; then
npm install
fi
echo "Checking that $TAG has been pushed to 'origin'..."
REMOTE_TAG=`node scripts/exists-tag.js "$TAG_NAME" | grep -Fo "$TAG_NAME"`
......@@ -32,9 +48,14 @@ echo "Remote tag: $REMOTE_TAG"
echo "Creating the pre-release if it does not exist..."
ASSETS=`node ./scripts/create-release.js $REMOTE_TAG create`
EXPECTED_ASSETS="cesium-desktop-$REMOTE_TAG-linux-x64.deb
if [[ "_$EXPECTED_ASSETS" == "_" ]]; then
EXPECTED_ASSETS="cesium-desktop-$REMOTE_TAG-linux-x64.deb
cesium-desktop-$REMOTE_TAG-linux-x64.tar.gz
cesium-desktop-$REMOTE_TAG-windows-x64.exe"
fi
for asset in $EXPECTED_ASSETS; do
if [[ -z `echo $ASSETS | grep -F "$asset"` ]]; then
......@@ -66,4 +87,4 @@ for asset in $EXPECTED_ASSETS; do
fi
done
echo "All the binaries have been uploaded."
\ No newline at end of file
echo "All the binaries have been uploaded."
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment