From 57c2971bfb1fb71edd6e040015f29854b87feffc Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Mon, 4 Feb 2019 16:30:40 +0100 Subject: [PATCH] Scripts for automated release update fix --- update-tutorials-full.sh | 6 ++++-- update-tutorials.sh | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/update-tutorials-full.sh b/update-tutorials-full.sh index ff75a9b9..9f6f5225 100755 --- a/update-tutorials-full.sh +++ b/update-tutorials-full.sh @@ -15,7 +15,7 @@ find . -type f -name 'package.json' -not \( -path '*/node_modules/*' -o -path '* find . -type f -name 'package.json' -not \( -path '*/node_modules/*' -o -path '*/package-lock.json' \) -exec sed -i "s/\"openvidu-angular\": \"$FROM_VERSION\"/\"openvidu-angular\": \"$TO_VERSION\"/" {} \; # Updating openvidu-node-client dependencies in package.json files [openvidu-js-node, openvidu-mvc-node, openvidu-recording-node] -find . -type f -name 'package.json' -not \( -path '*/node_modules/*' -o -path '*/package-lock.json' \) -exec sed -i "s/\"openvidu-node-client\": \"$FROM_VERSION\"/\"openvidu-node-client\": \"$TO_VERSION\"/" {} \; +find . -type f -name 'package.json' -not \( -path '*/node_modules/*' -o -path '*/package-lock.json' \) -exec sed -i "s/\"openvidu-node-client\": \"$FROM_VERSION_SDK\"/\"openvidu-node-client\": \"$TO_VERSION_SDK\"/" {} \; # Updating openvidu-java-client dependencies in pom.xml files [openvidu-js-java, openvidu-mvc-java, openvidu-recording-java] for tutorial in openvidu-js-java openvidu-mvc-java openvidu-recording-java; do @@ -43,7 +43,9 @@ rm openvidu-browser-$TO_VERSION.js # Update openvidu-webcomponent tutorial files: static web component files and import in index.html wget https://github.com/OpenVidu/openvidu/releases/download/v$TO_VERSION/openvidu-webcomponent-$TO_VERSION.zip -unzip openvidu-webcomponent-$TO_VERSION.zip +mkdir openvidu-webcomponent-$TO_VERSION +mv openvidu-webcomponent-$TO_VERSION.zip openvidu-webcomponent-$TO_VERSION/openvidu-webcomponent-$TO_VERSION.zip +unzip openvidu-webcomponent-$TO_VERSION/openvidu-webcomponent-$TO_VERSION.zip -d openvidu-webcomponent-$TO_VERSION/. rm openvidu-webcomponent/web/openvidu-webcomponent-$FROM_VERSION.js rm openvidu-webcomponent/web/openvidu-webcomponent-$FROM_VERSION.css mv openvidu-webcomponent-$TO_VERSION/openvidu-webcomponent-$TO_VERSION.js openvidu-webcomponent/web/. diff --git a/update-tutorials.sh b/update-tutorials.sh index 5416e851..c3cd3dab 100755 --- a/update-tutorials.sh +++ b/update-tutorials.sh @@ -35,7 +35,9 @@ rm openvidu-browser-$TO_VERSION.js # Update openvidu-webcomponent tutorial files: static web component files and import in index.html wget https://github.com/OpenVidu/openvidu/releases/download/v$TO_VERSION/openvidu-webcomponent-$TO_VERSION.zip -unzip openvidu-webcomponent-$TO_VERSION.zip +mkdir openvidu-webcomponent-$TO_VERSION +mv openvidu-webcomponent-$TO_VERSION.zip openvidu-webcomponent-$TO_VERSION/openvidu-webcomponent-$TO_VERSION.zip +unzip openvidu-webcomponent-$TO_VERSION/openvidu-webcomponent-$TO_VERSION.zip -d openvidu-webcomponent-$TO_VERSION/. rm openvidu-webcomponent/web/openvidu-webcomponent-$FROM_VERSION.js rm openvidu-webcomponent/web/openvidu-webcomponent-$FROM_VERSION.css mv openvidu-webcomponent-$TO_VERSION/openvidu-webcomponent-$TO_VERSION.js openvidu-webcomponent/web/.