From 5f86ab282b6c4d5a176e0e95810e1a6ff1ce14cc Mon Sep 17 00:00:00 2001 From: Tianwei Yue Date: Fri, 14 Jul 2023 02:08:36 -0700 Subject: [PATCH] Fix: ding-dong example requires uos protocol; gcloud libatk-bridge2.0 (#295) * fix: ding-dong requires uos * 1.18.8 * fix: gcloud tutorial system dependencies:libatk-bridge2.0 * 1.18.9 * Update ding-dong-bot.ts --------- Co-authored-by: Huan Li --- examples/ding-dong-bot.ts | 8 ++++++++ examples/tutorials/google-cloud-shell-tutorial.md | 3 ++- package.json | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/examples/ding-dong-bot.ts b/examples/ding-dong-bot.ts index 9a27510..5c17e0f 100755 --- a/examples/ding-dong-bot.ts +++ b/examples/ding-dong-bot.ts @@ -50,6 +50,14 @@ async function onMessage (msg: Message) { const bot = WechatyBuilder.build({ name: 'ding-dong-bot', + /** + * You can specific `puppet` and `puppetOptions` here with hard coding: + * + puppet: 'wechaty-puppet-wechat', + puppetOptions: { + uos: true, + }, + */ /** * How to set Wechaty Puppet Provider: * diff --git a/examples/tutorials/google-cloud-shell-tutorial.md b/examples/tutorials/google-cloud-shell-tutorial.md index 81732aa..4f3a05f 100644 --- a/examples/tutorials/google-cloud-shell-tutorial.md +++ b/examples/tutorials/google-cloud-shell-tutorial.md @@ -58,10 +58,11 @@ Git Repo has been already cloned in Google Cloud Shell already. ### 3. Install system dependency packages -The `puppeteer` needs `libgbm1` to be presented in the system, we need to install it first, run: +The `puppeteer` needs `libgbm1` and `libatk-bridge2.0` to be presented in the system, we need to install it first, run: ```sh sudo apt install -y libgbm1 libxkbcommon-x11-0 +sudo apt-get install -y libatk-bridge2.0-0 ``` ## NPM Install diff --git a/package.json b/package.json index 2f78370..4b27076 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wechaty-getting-started", - "version": "1.18.7", + "version": "1.18.9", "description": "Wechaty conversational SDK getting start template & examples", "type": "module", "engines": {