From 388ecf88e6e4c56fbfa477eb2092c50da497c481 Mon Sep 17 00:00:00 2001 From: msojocs Date: Wed, 16 Feb 2022 18:19:59 +0800 Subject: [PATCH] docs: readme.md --- bin/wechat-devtools | 2 +- readme.md | 22 +++++++++++++++++++--- tools/fix-package-name-node | 2 +- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/bin/wechat-devtools b/bin/wechat-devtools index ed99b88..78df22c 100755 --- a/bin/wechat-devtools +++ b/bin/wechat-devtools @@ -13,7 +13,7 @@ if [ -d ~/.config/wechat_devtools/WeappCache ];then fi EXTENSION1="--load-extension=$root_dir/nwjs/package.nw/js/ideplugin" -EXTENSION2="--load-extension=$( echo ~ )/.config/wechat_devtools/WeappPlugin" +EXTENSION2=--load-extension=~/.config/wechat_devtools/WeappPlugin INSPECTOR1="--custom-devtools-frontend=file://$root_dir/package.nw/js/ideplugin/inspector" # 要加file://指明为本地文件路径 INSPECTOR2="--custom-devtools-frontend=file://$( echo ~ )/.config/wechat_devtools/WeappPlugin/inspector/" USERDATADIR="$( echo ~ )/.config/wechat_devtools" diff --git a/readme.md b/readme.md index 38462c1..6ec355e 100644 --- a/readme.md +++ b/readme.md @@ -1,7 +1,26 @@ + + +
+ + + +

微信开发者工具 Linux版

+
+ +---- + [![Node.js CI](https://github.com/msojocs/wechat-devtools-linux/actions/workflows/release.yml/badge.svg)](https://github.com/msojocs/wechat-devtools-linux/actions/workflows/release.yml) [![wechat-tools](https://img.shields.io/badge/wechat--devtools-1.05.2201240-yellow)](https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html) [![nwjs](https://img.shields.io/badge/nwjs-0.53.1-green)](https://nwjs.io/downloads/) [![node](https://img.shields.io/badge/node-16.1.0-orange)](https://nodejs.org/en/) + + 这是微信开发者工具 Linux版 + + 图标作者[dragonation](https://github.com/dragonation), 由于是基于其项目修改,未经授权。 + +
+
+ # 项目说明 本项目是一个完整的搭建Linux下可用的“微信开发者工具”的脚本和工具集, @@ -119,9 +138,6 @@ git clone https://github.com/msojocs/wechat-devtools-linux.git 版本 1.02.2001191 ![screenshot 1.02.2001191](res/screenshots/1.02.2001191.jpg) -图标 -![icon](res/icons/wechat-devtools.png) - # 免责声明 微信开发者工具版权归腾讯公司所有,本项目旨在交流学习之用。如有不当之处,请联系本人,邮箱:jiyecafe@gmail.com diff --git a/tools/fix-package-name-node b/tools/fix-package-name-node index 73acd27..502d99c 100755 --- a/tools/fix-package-name-node +++ b/tools/fix-package-name-node @@ -14,7 +14,7 @@ const parseFile = function (path) { content.name = "wechat_devtools"; // 开启调试,更新参数 - content['chromium-args'] = content['chromium-args'].replace('--disable-devtools', '').replace('--ignore-gpu-blacklist', '--ignore-gpu-blocklist') + ' --mixed-context' + content['chromium-args'] = content['chromium-args'].replace('--disable-devtools', '--mixed-context').replace('--ignore-gpu-blacklist', '--ignore-gpu-blocklist') content.window.height = content.window.width = 1000 fs.writeFileSync(path, JSON.stringify(content));