forked from xdmjun/wxappUnpacker
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathbingo.bat
More file actions
48 lines (25 loc) · 671 Bytes
/
bingo.bat
File metadata and controls
48 lines (25 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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