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 +22
-21
lines changed Expand file tree Collapse file tree 6 files changed +22
-21
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/sh
1
+ #! /bin/bash
2
2
3
- cd ` dirname $0 ` /..
3
+ root_dir= $( cd ` dirname $0 ` /.. && pwd -P )
4
4
5
- root_dir=$( pwd)
6
5
dev_tools_config_dir=" $HOME /.config/微信web开发者工具"
7
6
8
7
rm -rf $dev_tools_config_dir
9
8
9
+ cd $root_dir /dist;
10
+
10
11
./nw &
12
+
11
13
nw_pid=$!
12
14
13
15
echo " please wait 5s!"
@@ -27,8 +29,8 @@ if [ -d "$dev_tools_config_dir" ]; then
27
29
cd $dev_tools_config_dir /WeappVendor
28
30
mkdir -p s
29
31
mv wc* s
30
- echo " cp $root_dir /WeappVendor/* $( pwd) "
31
- cp $root_dir /WeappVendor/* ./
32
+ echo " cp $root_dir /bin/ WeappVendor/* $( pwd) "
33
+ cp $root_dir /bin/ WeappVendor/* ./
32
34
echo " Success"
33
35
else
34
36
echo " Fail! Please reinstall"
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
# 下载nwjs,构建项目
3
- #
4
- cd ` dirname $0 ` /..
5
3
6
- root_dir=$( pwd)
4
+
5
+ root_dir=$( cd ` dirname $0 ` /.. && pwd -P)
7
6
8
7
. " $root_dir /bin/build.conf"
9
8
10
- tmp_dir=" /tmp/wcwd_xsp "
9
+ tmp_dir=" /tmp/wxdt_xsp "
11
10
12
11
nwjs_file=" $tmp_dir /nwjs-v$nwjs_v .tar.gz"
13
12
nwjs_dir=" $tmp_dir /nwjs-sdk-v${nwjs_v} -linux-x64"
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- cd ` dirname $0 ` /..
4
-
5
- root_dir=$( pwd)
3
+ root_dir=$( cd ` dirname $0 ` /.. && pwd -P)
6
4
7
5
. " $root_dir /bin/build.conf"
8
6
9
- tmp_dir=" /tmp/wcwd_xsp "
7
+ tmp_dir=" /tmp/wxdt_xsp "
10
8
dist_dir=" $root_dir /dist"
11
9
12
10
wcwd_file=" $tmp_dir /wechat_web_devtools_${wechat_v} _x64.exe"
Original file line number Diff line number Diff line change 1
- #! /bin/sh
2
-
3
- cd ` dirname $0 ` /..
4
-
5
- root_dir=$( pwd)
1
+ #! /bin/bash
6
2
3
+ root_dir=$( cd ` dirname $0 ` /.. && pwd -P)
4
+ echo $root_dir
7
5
. " $root_dir /bin/build.conf"
8
6
9
7
cur_nwjs_v=" "
@@ -12,7 +10,7 @@ if [ -f "$root_dir/dist/nwjs_version" ]; then
12
10
cur_nwjs_v=` cat " $root_dir /dist/nwjs_version" `
13
11
fi
14
12
15
- if [ " $cur_nwjs_v " != $nwjs_v ]; then
13
+ if [ " $cur_nwjs_v " != " $nwjs_v " ]; then
16
14
echo " 安装微信开发者工具对应nwjs版本:$nwjs_v "
17
15
sh " $root_dir /bin/update_nwjs.sh"
18
16
fi
@@ -22,6 +20,8 @@ if [ $want = "replace" ]; then
22
20
sh " $root_dir /bin/replace_weapp_vendor.sh"
23
21
elif [ $want = " start" ]; then
24
22
` $root_dir /dist/nw`
23
+ elif [ $want = " install" ]; then
24
+ echo " 安装完成"
25
25
else
26
26
echo " 不支持$want 操作"
27
27
exit 127
Original file line number Diff line number Diff line change 5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
7
"test" : " echo \" Error: no test specified\" && exit 1" ,
8
- "install" : " sh ./ bin/wxdt.sh replace "
8
+ "install" : " sh bin/wxdt install "
9
9
},
10
10
"bin" : {
11
- "wxdt" : " ./ bin/wxdt"
11
+ "wxdt" : " bin/wxdt"
12
12
},
13
13
"repository" : {
14
14
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ linux下使用微信web开发者工具.
17
17
## Installation
18
18
19
19
``` console
20
+ git clone git@github.com:cytle/wechat_web_devtools.git
21
+ cd wechat_web_devtools
20
22
./bin/wxdt
21
23
```
22
24
You can’t perform that action at this time.
0 commit comments