mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-22 00:00:04 +08:00
fix: cli
This commit is contained in:
parent
f8187dbe76
commit
5f57bf5c92
@ -15,3 +15,18 @@ export APPDATA="$DIR/../nwjs"
|
|||||||
export PATH="$DIR/../wine:$DIR/../node/bin:$DIR/../nwjs:$PATH"
|
export PATH="$DIR/../wine:$DIR/../node/bin:$DIR/../nwjs:$PATH"
|
||||||
|
|
||||||
$DIR/../tools/wechat-devtools-cli "$@"
|
$DIR/../tools/wechat-devtools-cli "$@"
|
||||||
|
|
||||||
|
# #!/bin/bash
|
||||||
|
# root_dir=$(cd `dirname $0`/.. && pwd -P)
|
||||||
|
|
||||||
|
# echo "cli"
|
||||||
|
|
||||||
|
# export WECHAT_DEVTOOLS_DIR="$root_dir/nwjs"
|
||||||
|
# export APPDATA="$HOME/.config"
|
||||||
|
# export USERPROFILE="$root"
|
||||||
|
# export PATH="$root_dir/wine:$root_dir/node/bin:$root_dir/nwjs:$PATH"
|
||||||
|
# export CALLING_DIR=$root_dir
|
||||||
|
|
||||||
|
# node $root_dir/bin/cli.js "$@"
|
||||||
|
|
||||||
|
# cd $root_dir
|
@ -1,3 +1,10 @@
|
|||||||
|
# 1.05.2203070-7 / 2022-03-19
|
||||||
|
- fix: cli
|
||||||
|
|
||||||
|
# 1.05.2203070-6 / 2022-03-19
|
||||||
|
- feat: wcc node模块支持wxml引用
|
||||||
|
- feat: wcc node模块支持自定义函数名
|
||||||
|
|
||||||
# 1.05.2203070-5 / 2022-03-18
|
# 1.05.2203070-5 / 2022-03-18
|
||||||
- fix: 增强wcsc编译器
|
- fix: 增强wcsc编译器
|
||||||
|
|
||||||
|
@ -11,5 +11,6 @@ fi
|
|||||||
|
|
||||||
cd "$NW_PACKAGE_DIR"
|
cd "$NW_PACKAGE_DIR"
|
||||||
|
|
||||||
sed -i 's#AppData/Local/\${global.userDirName}/User Data/Default#.config/\${global.userDirName}/Default#g' js/common/cli/index.js
|
sed -i 's#AppData/Local/\${global.userDirName}/User Data/\${global.productHash}/Default#.config/\${global.userDirName}/Default#g' js/common/cli/index.js
|
||||||
sed -i 's#USERPROFILE#HOME#g' js/common/cli/index.js
|
sed -i 's#USERPROFILE#HOME#g' js/common/cli/index.js
|
||||||
|
sed -i 's#`./\${global.appname}.exe`#`./bin/\${global.appname}`#g' js/common/cli/index.js
|
||||||
|
@ -10,7 +10,7 @@ const parseFile = function (path) {
|
|||||||
}
|
}
|
||||||
let content = JSON.parse(fs.readFileSync(path, "utf8"));
|
let content = JSON.parse(fs.readFileSync(path, "utf8"));
|
||||||
|
|
||||||
content.name = "wechat_devtools";
|
content.name = "wechat-devtools";
|
||||||
// 开启调试,更新参数
|
// 开启调试,更新参数
|
||||||
content['chromium-args'] = content['chromium-args'].replace('--disable-devtools', '--mixed-context').replace('--ignore-gpu-blacklist', '--ignore-gpu-blocklist')
|
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
|
content.window.height = content.window.width = 1000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user