1 Star 0 Fork 227

webwlsong / wxappUnpacker

forked from Moreduo / wxappUnpacker 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
bingo.sh 717 Bytes
一键复制 编辑 原始数据 按行查看 历史
薛定喵君 提交于 2019-12-01 14:29 . init
#!/usr/bin/env bash
# MyWxappUnpacker 项目路径
WXAPPUNPACKER_PATH=`pwd`
FILE_FORMAT=wxapkg
wxappUnpacker_pkg() {
echo "node ${WXAPPUNPACKER_PATH}/wuWxapkg.js ${fname}"
node ${WXAPPUNPACKER_PATH}/wuWxapkg.js $2 $1
return 0;
}
wxappUnpacker() {
de_dir=$1
if [ -z "$1" ]
then
de_dir=`pwd`
fi
echo "${de_dir}"
echo "for wxapkg in `find ${de_dir} -name "*.${FILE_FORMAT}"`"
for fname in `find ${de_dir} -name "*.${FILE_FORMAT}"`
do
wxappUnpacker_pkg ${fname} $2
done
return 0;
}
de_pkg() {
if [ "-d" == "$1" ]
then
wxappUnpacker $1 $2
else
wxappUnpacker_pkg $1 $2
fi
return 0;
}
# $1: pkg file or pkg dir; $2: order
de_pkg $1 $2
1
https://gitee.com/webwlsong/wxappUnpacker.git
git@gitee.com:webwlsong/wxappUnpacker.git
webwlsong
wxappUnpacker
wxappUnpacker
master

搜索帮助