This repository was archived by the owner on Jun 28, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +23
-28
lines changed
Expand file tree Collapse file tree 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)
44
55dev_tools_config_dir=" $HOME /.config/微信web开发者工具"
66
7- rm -rf $dev_tools_config_dir
7+ if [ ! -d " $dev_tools_config_dir " ]; then
8+ cd $root_dir /dist;
9+ ./nw &
810
9- cd $root_dir /dist ;
11+ nw_pid= $!
1012
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"
1218
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
2621
27- kill -9 $nw_pid
2822if [ -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
3425 echo " Success"
3526else
3627 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"
1515wcwd_download=" https://dldir1.qq.com/WechatWebDev/${wechat_v// ./ } /wechat_web_devtools_${wechat_v} _x64.exe"
1616
1717wcwd_package_dir=" $HOME /.wine/drive_c/Program Files (x86)/Tencent/微信web开发者工具/package.nw"
18+ onlineverdor_dir=" $root_dir /package.nw/app/dist/weapp/onlinevendor"
1819
1920mkdir -p $tmp_dir
2021
@@ -32,3 +33,6 @@ wine $wcwd_file
3233
3334rm -rf " $root_dir /package.nw"
3435cp -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
1616fi
1717
1818want=${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
2220 ` $root_dir /dist/nw`
2321elif [ $want = " install" ]; then
22+ sh " $root_dir /bin/replace_weapp_vendor.sh"
2423 echo " 安装完成"
2524else
2625 echo " 不支持$want 操作"
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ linux下使用微信web开发者工具.
1515- 2017/05/18 更新:微信小程序升级到0.17.170900
1616- 2017/05/19 更新:微信小程序升级到0.17.171900
1717
18- ## Installation
18+ ## Usage
1919
2020``` console
2121git clone [email protected] :cytle/wechat_web_devtools.git @@ -37,7 +37,7 @@ WINEARCH=win32 WINEPREFIX=~/.wine32 winecfg
3737
38383 . 替换WeappVendor
3939``` console
40- ./bin/wxdt replace
40+ ./bin/wxdt install
4141```
4242
43434 . 启动
@@ -56,7 +56,8 @@ git pull origin
5656如果wcc和wcsc编译有问题,执行以下,让工具重新生成wcc和wcsc,** 会删除开发者工具配置文件,所有工程和登录信息会消失**
5757
5858``` console
59- ./bin/wxdt replace
59+ rm -rf "$HOME/.config/微信web开发者工具"
60+ ./bin/wxdt install
6061```
6162
6263## 截图
You can’t perform that action at this time.
0 commit comments