This repository was archived by the owner on Jun 28, 2022. It is now read-only.
File tree 6 files changed +23
-28
lines changed
6 files changed +23
-28
lines changed Original file line number Diff line number Diff line change @@ -4,33 +4,24 @@ root_dir=$(cd `dirname $0`/.. && pwd -P)
4
4
5
5
dev_tools_config_dir=" $HOME /.config/微信web开发者工具"
6
6
7
- rm -rf $dev_tools_config_dir
7
+ if [ ! -d " $dev_tools_config_dir " ]; then
8
+ cd $root_dir /dist;
9
+ ./nw &
8
10
9
- cd $root_dir /dist ;
11
+ nw_pid= $!
10
12
11
- ./nw &
13
+ echo " please wait 5s!"
14
+ for k in $( seq 1 5 ) ; do
15
+ sleep 1s && echo " ${k} s"
16
+ done
17
+ echo " kill nw"
12
18
13
- nw_pid=$!
14
-
15
- echo " please wait 5s!"
16
- sleep 1s
17
- echo " 4s"
18
- sleep 1s
19
- echo " 3s"
20
- sleep 1s
21
- echo " 2s"
22
- sleep 1s
23
- echo " 1s"
24
- sleep 1s
25
- echo " after 5s"
19
+ kill -9 $nw_pid
20
+ fi
26
21
27
- kill -9 $nw_pid
28
22
if [ -d " $dev_tools_config_dir " ]; then
29
- cd $dev_tools_config_dir /WeappVendor
30
- mkdir -p s
31
- mv wc* s
32
- echo " cp $root_dir /bin/WeappVendor/* $( pwd) "
33
- cp $root_dir /bin/WeappVendor/* ./
23
+ echo " cp -rfu $root_dir /bin/WeappVendor/* $dev_tools_config_dir /WeappVendor"
24
+ cp -rf $root_dir /bin/WeappVendor/* " $dev_tools_config_dir /WeappVendor" 2> /dev/null
34
25
echo " Success"
35
26
else
36
27
echo " Fail! Please reinstall"
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ wcwd_file="$tmp_dir/wechat_web_devtools_${wechat_v}_x64.exe"
15
15
wcwd_download=" https://dldir1.qq.com/WechatWebDev/${wechat_v// ./ } /wechat_web_devtools_${wechat_v} _x64.exe"
16
16
17
17
wcwd_package_dir=" $HOME /.wine/drive_c/Program Files (x86)/Tencent/微信web开发者工具/package.nw"
18
+ onlineverdor_dir=" $root_dir /package.nw/app/dist/weapp/onlinevendor"
18
19
19
20
mkdir -p $tmp_dir
20
21
@@ -32,3 +33,6 @@ wine $wcwd_file
32
33
33
34
rm -rf " $root_dir /package.nw"
34
35
cp -r " $wcwd_package_dir " " $root_dir "
36
+
37
+ # 链接wcc.exe wcsc.exe
38
+ ln " $onlineverdor_dir /*.exe" " $root_dir /bin/WeappVendor/s"
Original file line number Diff line number Diff line change @@ -16,11 +16,10 @@ if [ "$cur_nwjs_v" != "$nwjs_v" ]; then
16
16
fi
17
17
18
18
want=${1:- " start" }
19
- if [ $want = " replace" ]; then
20
- sh " $root_dir /bin/replace_weapp_vendor.sh"
21
- elif [ $want = " start" ]; then
19
+ if [ $want = " start" ]; then
22
20
` $root_dir /dist/nw`
23
21
elif [ $want = " install" ]; then
22
+ sh " $root_dir /bin/replace_weapp_vendor.sh"
24
23
echo " 安装完成"
25
24
else
26
25
echo " 不支持$want 操作"
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ linux下使用微信web开发者工具.
15
15
- 2017/05/18 更新:微信小程序升级到0.17.170900
16
16
- 2017/05/19 更新:微信小程序升级到0.17.171900
17
17
18
- ## Installation
18
+ ## Usage
19
19
20
20
``` console
21
21
git clone git@github.com:cytle/wechat_web_devtools.git
@@ -37,7 +37,7 @@ WINEARCH=win32 WINEPREFIX=~/.wine32 winecfg
37
37
38
38
3 . 替换WeappVendor
39
39
``` console
40
- ./bin/wxdt replace
40
+ ./bin/wxdt install
41
41
```
42
42
43
43
4 . 启动
@@ -56,7 +56,8 @@ git pull origin
56
56
如果wcc和wcsc编译有问题,执行以下,让工具重新生成wcc和wcsc,** 会删除开发者工具配置文件,所有工程和登录信息会消失**
57
57
58
58
``` console
59
- ./bin/wxdt replace
59
+ rm -rf "$HOME/.config/微信web开发者工具"
60
+ ./bin/wxdt install
60
61
```
61
62
62
63
## 截图
You can’t perform that action at this time.
0 commit comments