forked from system-cpu/wxappUnpacker
-
Notifications
You must be signed in to change notification settings - Fork 10
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
system-cpu
committed
Jun 10, 2020
1 parent
82624e9
commit 00045bf
Showing
12 changed files
with
1,635 additions
and
1,217 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,25 +0,0 @@ | ||
发表 Issue 前请仔细阅读以下内容: | ||
|
||
1. 如果你是要反馈 bug, 请按以下`模板`书写 Issue; | ||
2. 如果你遇到的是 Node.js 使用问题, 请尽可能依赖搜索引擎解决问题; | ||
3. 遇到包依赖问题,请联系对应项目; | ||
4. 任何对某类小程序包的适配问题都应提供 wxapkg 程序包,否则直接 Close 处理; | ||
5. 提交前请确认 wxapkg 程序包版本不小于 v0.6vv_20180111_fbi (直接用文本编辑器打开 wxapkg包搜索 v0.6vv 或 v0.5vv 即可查到,注意版本大小主要比较的是日期), 旧版本不提供支持, 相关 Issue 直接 Close 处理; | ||
6. 直接分包和直接处理含插件的包两个功能暂不支持, 请勿重复发表 Issue, 新样例可在已存在的 Issue 下提出; | ||
7. 请不要在其他 Issue 下发表与该 Issue 无关的回复, 否则将有可能被删除。 | ||
|
||
模板内容如下: | ||
|
||
程序执行命令(可选): | ||
|
||
程序执行错误信息(如果反馈是抛出异常的错误,必填): | ||
|
||
``` | ||
复制到这里 | ||
``` | ||
|
||
程序结果错误信息(如果反馈不是抛出异常的错误, 必填, 请尽可能详细描述): | ||
|
||
程序包(你所要解压的程序包地址, 可为网盘链接, 也可直接上传[上传前请先打包]. 必填): | ||
|
||
其他附加内容: | ||
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
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# WXAPPUNPACKER_PATH 项目路径 | ||
set WXAPPUNPACKER_PATH=%~dp0 | ||
|
||
set FILE_FORMAT=wxapkg | ||
|
||
:wxappUnpacker_pkg | ||
|
||
echo "node %WXAPPUNPACKER_PATH%/wuWxapkg.js %fname%" | ||
|
||
node %WXAPPUNPACKER_PATH%/wuWxapkg.js %2 %1 | ||
|
||
goto:eof | ||
|
||
:wxappUnpacker | ||
|
||
set de_dir=%1 | ||
|
||
if "%de_dir%" == "" | ||
|
||
set de_dir=%WXAPPUNPACKER_PATH% | ||
|
||
echo %de_dir% | ||
|
||
echo "for wxapkg in `find %de_dir% "*.${FILE_FORMAT}"`" | ||
|
||
for %%fname in `/f %de_dir% -name "*.%FILE_FORMAT%"` | ||
|
||
do | ||
|
||
(call :wxappUnpacker_pkg %fname% %2) | ||
|
||
goto:eof | ||
|
||
:de_pkg | ||
|
||
if "-d" == "%1" | ||
|
||
(call :wxappUnpacker %1 %2) | ||
|
||
else | ||
|
||
(call :wxappUnpacker_pkg %1 %2) | ||
|
||
goto:eof | ||
|
||
# $1: pkg file or pkg dir; $2: order | ||
|
||
call :de_pkg %1 %2 |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/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 | ||
|
||
|
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
Oops, something went wrong.