From 644f2f4ebcf055f06a7d267836a017d91076f9ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=AE=87=E9=9D=96?= <545641826@qq.com> Date: Sun, 18 Jul 2021 23:33:59 -0400 Subject: [PATCH 1/2] allow to config chrome/chromium path by setting the environment variable named WECHATY_PUPPET_PUPPETEER_ENDPOINT --- src/puppet-wechat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/puppet-wechat.ts b/src/puppet-wechat.ts index 824cf52..0582bb7 100644 --- a/src/puppet-wechat.ts +++ b/src/puppet-wechat.ts @@ -127,7 +127,7 @@ export class PuppetWeChat extends Puppet { this.fileId = 0 this.bridge = new Bridge({ - endpoint : options.endpoint, + endpoint : options.endpoint || process.env.WECHATY_PUPPET_PUPPETEER_ENDPOINT, head : typeof options.head === 'boolean' ? options.head : envHead(), launchOptions : options.launchOptions as LaunchOptions, memory : this.memory, From 36431db4a654b3056768ba45f7cb247f1a59b87a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=AE=87=E9=9D=96?= <545641826@qq.com> Date: Sun, 18 Jul 2021 23:34:22 -0400 Subject: [PATCH 2/2] 0.28.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7c27b1b..b7f4e61 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wechaty-puppet-wechat", - "version": "0.28.1", + "version": "0.28.2", "description": "Puppet WeChat for Wechaty", "main": "dist/src/mod.js", "typings": "dist/src/mod.d.ts",