Skip to content

Commit

Permalink
将install.sh移入包内
Browse files Browse the repository at this point in the history
  • Loading branch information
炒饭 committed Mar 25, 2017
1 parent 0608ea4 commit 17da886
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
12 changes: 3 additions & 9 deletions bin/install.sh
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


1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ mkdir -p $tmp_dir/$dist_wechat_dir
cp -rl "$nwjs_dir"/* "$tmp_dir/$dist_wechat_dir" &&
cp -rl "$package_dir" "$tmp_dir/$dist_wechat_dir" &&
cp -rl "$cur_dir/WeappVendor" "$tmp_dir/$dist_wechat_dir" &&
cp -rl "$cur_dir/bin/install.sh" "$tmp_dir/$dist_wechat_dir" &&
tar -zcvf "$dist_wechat_package" -C "$tmp_dir" "$dist_wechat_dir"

mkdir -p $build_dir
Expand Down

0 comments on commit 17da886

Please sign in to comment.