Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update latest Livechat widget version(1.1.3) #15154

Merged
merged 5 commits into from
Aug 12, 2019
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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