Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 784ca23

Browse files
committed
update bin/wechat-devtools-nodebug because we modifies the format of package.json
1 parent 187684c commit 784ca23

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎bin/wechat-devtools‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ else
1616
fi
1717

1818
# 获取App名称
19-
APP_NAME=$( cat "$root_dir/package.nw/package.json" | grep -Eo 'name":".*","main' )
20-
APP_NAME=${APP_NAME//name\":\"/}
21-
APP_NAME=${APP_NAME//\",\"main/}
19+
APP_NAME=$( cat "$root_dir/package.nw/package.json" | grep -Eo 'name":\s".*",\s"main' )
20+
APP_NAME=${APP_NAME//name\": \"/}
21+
APP_NAME=${APP_NAME//\", \"main/}
22+
# echo $APP_NAME
2223

2324
export WECHAT_DEVTOOLS_DIR="$root_dir/nwjs"
2425
export APPDATA="$DATA_DIR/$APP_NAME"
@@ -60,4 +61,5 @@ USERDATADIR="$APPDATA"
6061

6162
# "$@"参数
6263
LANG=zh_CN.UTF-8
63-
exec "$root_dir/nwjs/nw" $root_dir/package.nw $EXTENSION2 $INSPECTOR1 "$@"
64+
# echo "$root_dir/nwjs/nw" $root_dir/package.nw $EXTENSION2 $INSPECTOR1 "$@"
65+
exec "$root_dir/nwjs/nw" $root_dir/package.nw $EXTENSION2 $INSPECTOR1 "$@"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /