提交 310fc25a 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

code clean up, v0.3.15

上级 739cb9b1
#!/bin/sh
#
# Credit: https://github.com/cusspvz/node.docker/blob/master/entrypoint
# Wechaty - Connect ChatBots
#
# https://github.com/wechaty/wechaty
#
# Original Code Credit: https://github.com/cusspvz/node.docker/blob/master/entrypoint
#
set -e
......@@ -10,17 +14,18 @@ echo
# to identify run env (for tests)
export WECHATY_DOCKER='docker'
# CI will force ava to output use --verbose param, which is fit docker console log
export CI="$WECHATY_DOCKER"
echo "WECHATY_HEAD=$WECHATY_HEAD"
if [ "$WECHATY_HEAD" != "phantomjs" ]; then
export DISPLAY=':99.0'
Xvfb :99 -ac -screen 0 640x480x8 -nolisten tcp &
echo "Xvfb started on DISPLAY=$DISPLAY"
fi
# set CI here, in order to force ava to output use --verbose param, which is fit docker console log
export CI="FORCE_AVA_OUTPUT_VERBOSE"
# [ "$WECHATY_HEAD" != "" ] && {
# echo "WECHATY_HEAD=$WECHATY_HEAD"
# }
# if [ "$WECHATY_HEAD" != "phantomjs" ]; then
# export DISPLAY=':99.0'
# Xvfb :99 -ac -screen 0 640x480x8 -nolisten tcp &
# echo "Xvfb started on DISPLAY=$DISPLAY"
# fi
if [ "$1" = "start" ]; then
exec npm start
......
#!/bin/bash
#
# Wechaty Helper - https://github.com/wechaty/wechaty
# Wechaty Xvfb Browser Loader
#
# Credit:
# https://github.com/wechaty/wechaty
#
# Original Code Credit:
# https://github.com/mark-adams/docker-chromium-xvfb/blob/master/images/base/xvfb-chromium
# http://stackoverflow.com/a/30336424/1123955
#
......
{
"name": "wechaty",
"version": "0.3.14",
"version": "0.3.15",
"description": "Wechat for Bot (Personal Account)",
"main": "index.js",
"wechaty": {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册