Skip to content

Commit

Permalink
fix: cli使用不正常
Browse files Browse the repository at this point in the history
cli无法打开开发工具的问题
Refs: #54
  • Loading branch information
msojocs committed May 11, 2022
1 parent 1d3352d commit a83be13
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 31 deletions.
6 changes: 2 additions & 4 deletions bin/wechat-devtools-cli
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ cd $root_dir

export WECHAT_DEVTOOLS_DIR="$root_dir/nwjs"
export APPDATA="$root_dir/nwjs"
export PATH="$root_dir/wine:$root_dir/node/bin:$root_dir/nwjs:$PATH"
export PATH="$root_dir/node/bin:$root_dir/nwjs:$PATH"

# node $root_dir/package.nw/js/common/cli/index.js "$@"
# const t=e.customScriptName?e.$0:o.basename(e.$0),
echo "process.argv[1]='$root_dir/bin/wechat-devtools-cli';require('$root_dir/package.nw/js/common/cli/index.js')" | node - "$@"
node $root_dir/package.nw/js/common/cli/index.js "$@"
27 changes: 0 additions & 27 deletions bin/wechat-devtools-snap

This file was deleted.

4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.05.2204250-2 / 2022-05-11
- fix: 修复wcc编译器不支持单文件编译的bug
- fix: 修复cli异常

# 1.05.2204250-1 / 2022-04-26
- update: devtools 1.05.2204250
- update: 跟进wcc编译器变更
Expand Down
1 change: 1 addition & 0 deletions tools/fix-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ cd "$NW_PACKAGE_DIR"
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#`./\${global.appname}.exe`#`./bin/\${global.appname}`#g' js/common/cli/index.js
sed -i 's#,""));const T#,""));_.$0="wechat-devtools-cli";const T#' js/common/cli/index.js

0 comments on commit a83be13

Please sign in to comment.