@cloud411716/fancy-webnovel 0.1.87 → 0.1.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud411716/fancy-webnovel",
3
- "version": "0.1.87",
3
+ "version": "0.1.89",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -154,7 +154,7 @@ async function runScanWithChromiumFix(ctx, session, invocation, { platform, leng
154
154
  });
155
155
  const answer = choice.answers[0]?.selected?.[0] ?? choice.answers[0]?.custom;
156
156
  if (!answer || answer === '我自己安装') {
157
- notify(session, '⚠️ 已取消。请手动安装 Chromium 后再次运行 /fancy-scan。\n安装命令:npm install -g && npx --registry=https://registry.npmmirror.com playwright install chromium --with-deps');
157
+ notify(session, '⚠️ 已取消。请手动安装 Chromium 后再次运行 /fancy-scan。\n安装命令:npm install -g @playwright/cli --registry=https://registry.npmmirror.com && PLAYWRIGHT_DOWNLOAD_HOST=https://npmmirror.com/mirrors/playwright/ playwright-cli install-browser --with-deps');
158
158
  return undefined;
159
159
  }
160
160
 
@@ -163,7 +163,7 @@ async function runScanWithChromiumFix(ctx, session, invocation, { platform, leng
163
163
  const installStop = startActivity(session);
164
164
 
165
165
  const installProc = spawn('sh', ['-c',
166
- 'npm install -g && npx --registry=https://registry.npmmirror.com playwright install chromium --with-deps'
166
+ 'npm install -g @playwright/cli --registry=https://registry.npmmirror.com && PLAYWRIGHT_DOWNLOAD_HOST=https://npmmirror.com/mirrors/playwright/ playwright-cli install-browser --with-deps'
167
167
  ], {
168
168
  stdio: ['ignore', 'pipe', 'pipe'],
169
169
  cwd: process.cwd(),
@@ -195,7 +195,7 @@ async function runScanWithChromiumFix(ctx, session, invocation, { platform, leng
195
195
  resolve('retry');
196
196
  } else {
197
197
  const out = installOut.join('').slice(-300);
198
- notify(session, `❌ Chromium 安装失败(exit ${code})。\n请手动运行以下命令后重试:\n npm install -g && npx --registry=https://registry.npmmirror.com playwright install chromium --with-deps\n\n安装日志末尾:\n${out}`);
198
+ notify(session, `❌ Chromium 安装失败(exit ${code})。\n请手动运行以下命令后重试:\n npm install -g @playwright/cli --registry=https://registry.npmmirror.com && PLAYWRIGHT_DOWNLOAD_HOST=https://npmmirror.com/mirrors/playwright/ playwright-cli install-browser --with-deps\n\n安装日志末尾:\n${out}`);
199
199
  resolve(undefined);
200
200
  }
201
201
  });