docs: readme.md

This commit is contained in:
msojocs 2022-02-16 18:19:59 +08:00
parent 7626d7c1d0
commit 388ecf88e6
3 changed files with 21 additions and 5 deletions

View File

@ -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"

View File

@ -1,7 +1,26 @@
<div align="center">
<img src="./res/icons/wechat-devtools.png" height="100px" width="100px"/>
<h3>微信开发者工具 Linux版</h3>
<br>
----
[![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), 由于是基于其项目修改,未经授权。
<br>
</div>
# 项目说明
本项目是一个完整的搭建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

View File

@ -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));