diff --git a/packages/rocketchat-livechat/plugin/build.sh b/packages/rocketchat-livechat/plugin/build.sh index 37d09b1db2a3..068af2554e03 100644 --- a/packages/rocketchat-livechat/plugin/build.sh +++ b/packages/rocketchat-livechat/plugin/build.sh @@ -3,8 +3,7 @@ export LIVECHAT_DIR="../../../public/livechat" export BUILD_DIR="../build" export BUNDLE_DIR="../build/bundle/programs/web.browser.legacy" export LIVECHAT_ASSETS_DIR="../../../private/livechat" -export LATEST_LIVECHAT_VERSION="1.1.0" -export LIVECHAT_VERSION_DIR="1.0.0" +export LATEST_LIVECHAT_VERSION="1.1.3" cd packages/rocketchat-livechat/.app meteor npm install --production @@ -23,10 +22,8 @@ cp $BUNDLE_DIR/head.html $LIVECHAT_ASSETS_DIR/head.html rm -rf $BUILD_DIR #NEW LIVECHAT# -echo "Installing new Livechat..." +echo "Installing Livechat ${LATEST_LIVECHAT_VERSION}..." cd $LIVECHAT_DIR -mkdir -p $LIVECHAT_VERSION_DIR -cd $LIVECHAT_VERSION_DIR curl -sOL "https://github.com/RocketChat/Rocket.Chat.Livechat/releases/download/v${LATEST_LIVECHAT_VERSION}/build.tar.gz" tar -xf build.tar.gz @@ -36,5 +33,4 @@ rm build.tar.gz # this is not harmful since doctype is case-insesitive: https://www.w3.org/TR/html5/syntax.html#the-doctype node -e 'fs.writeFileSync("index.html", fs.readFileSync("index.html").toString().replace("