Skip to content

Commit

Permalink
Update latest Livechat widget version(1.1.3) (#15154)
Browse files Browse the repository at this point in the history
* Update the latest livechat widget version(1.1.2).

* Rename the latest release from 1.1.2 to 1.1.3
  • Loading branch information
renatobecker authored and sampaiodiego committed Aug 13, 2019
1 parent 63bb25e commit 8f672b6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/rocketchat-livechat/plugin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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("<!DOCTYPE", "<!doctype"));'

cd $LIVECHAT_ASSETS_DIR
cp ../../public/livechat/$LIVECHAT_VERSION_DIR/index.html .
cp index.html ../../private/livechat

0 comments on commit 8f672b6

Please sign in to comment.