forked from cytle/wechat_web_devtools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
炒饭
committed
Mar 25, 2017
1 parent
0608ea4
commit 17da886
Showing
2 changed files
with
4 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
#! /bin/sh | ||
|
||
package=$1 | ||
target_dir="$HOME/wechat-dev-tools-xsp" | ||
cur_dir=${dirname $0} | ||
dev_tools_config_dir="$HOME/.config/微信web开发者工具" | ||
|
||
rm -rf $target_dir | ||
mkdir $target_dir | ||
|
||
tar -xzvf $package -C $HOME | ||
|
||
rm -rf $dev_tools_config_dir | ||
cd $target_dir && | ||
|
||
./nw | ||
# TODO close nw | ||
|
||
if [ -d "$dev_tools_config_dir" ]; then | ||
cd $dev_tools_config_dir/WeappVendor | ||
mkdir -p s | ||
mv wc* s | ||
cp $target_dir/WeappVendor/* ./ | ||
cp $cur_dir/WeappVendor/* ./ | ||
fi | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters