@open-dy/tt-wasmsplit-ci 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -0
- package/dist/tt-wasmsplit-ci.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,6 +39,18 @@ Options:
|
|
|
39
39
|
-h, --help display help for command
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
+
示例:
|
|
43
|
+
旧包体格式(原始包为zip)
|
|
44
|
+
```bash
|
|
45
|
+
tt-wasmsplit-ci init -p ./mygame.zip -i APPID_PLACEHOLDER -m "Start Prepare"
|
|
46
|
+
```
|
|
47
|
+
新包体格式(原始包为一个文件夹)
|
|
48
|
+
```bash
|
|
49
|
+
tt-wasmsplit-ci init -p ./gamefolder -i APPID_PLACEHOLDER -m "Start Prepare"
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
42
54
|
## 获取分包状态
|
|
43
55
|
```bash
|
|
44
56
|
tt-wasmsplit-ci getinfo -p <package> -i <appId>
|
|
@@ -57,6 +69,17 @@ Options:
|
|
|
57
69
|
-h, --help display help for command
|
|
58
70
|
```
|
|
59
71
|
|
|
72
|
+
示例:
|
|
73
|
+
旧包体格式(原始包为zip)
|
|
74
|
+
```bash
|
|
75
|
+
tt-wasmsplit-ci getinfo -p ./mygame.zip -i APPID_PLACEHOLDER
|
|
76
|
+
```
|
|
77
|
+
新包体格式(原始包为一个文件夹)
|
|
78
|
+
```bash
|
|
79
|
+
tt-wasmsplit-ci getinfo -p ./gamefolder -i APPID_PLACEHOLDER
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
|
|
60
83
|
## 开始分包
|
|
61
84
|
```bash
|
|
62
85
|
tt-wasmsplit-ci dosplit -p <package> -i <appId>
|
|
@@ -75,6 +98,16 @@ Options:
|
|
|
75
98
|
-h, --help display help for command
|
|
76
99
|
```
|
|
77
100
|
|
|
101
|
+
示例:
|
|
102
|
+
旧包体格式(原始包为zip)
|
|
103
|
+
```bash
|
|
104
|
+
tt-wasmsplit-ci dosplit -p ./mygame.zip -i APPID_PLACEHOLDER -g
|
|
105
|
+
```
|
|
106
|
+
新包体格式(原始包为一个文件夹)
|
|
107
|
+
```bash
|
|
108
|
+
tt-wasmsplit-ci dosplit -p ./gamefolder -i APPID_PLACEHOLDER -g
|
|
109
|
+
```
|
|
110
|
+
|
|
78
111
|
|
|
79
112
|
## 上传函数名文件
|
|
80
113
|
```bash
|
|
@@ -98,6 +131,18 @@ Options:
|
|
|
98
131
|
-f, --funcList <path> wasm 符号表文件路径,必填
|
|
99
132
|
```
|
|
100
133
|
|
|
134
|
+
示例:
|
|
135
|
+
旧包体格式(原始包为zip)
|
|
136
|
+
```bash
|
|
137
|
+
tt-wasmsplit-ci uploadSymbolList -p ./mygame.zip -i APPID_PLACEHOLDER -f ./wasm_symbols/list.txt
|
|
138
|
+
```
|
|
139
|
+
新包体格式(原始包为一个文件夹)
|
|
140
|
+
```bash
|
|
141
|
+
tt-wasmsplit-ci uploadSymbolList -p ./gamefolder -i APPID_PLACEHOLDER -f ./wasm_symbols/list.txt
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
101
146
|
## 终止分包
|
|
102
147
|
```bash
|
|
103
148
|
tt-wasmsplit-ci disable -p <package> -i <appId>
|
|
@@ -113,4 +158,15 @@ Options:
|
|
|
113
158
|
-i, --appid <appid> app id,必填
|
|
114
159
|
--no-report 使用该参数时将不采集行为数据
|
|
115
160
|
-h, --help display help for command
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
示例:
|
|
164
|
+
旧包体格式(原始包为zip)
|
|
165
|
+
```bash
|
|
166
|
+
# 终止分包(替换占位符为真实路径和 app id)
|
|
167
|
+
tt-wasmsplit-ci disable -p ./mygame.zip -i APPID_PLACEHOLDER
|
|
168
|
+
```
|
|
169
|
+
新包体格式(原始包为一个文件夹)
|
|
170
|
+
```bash
|
|
171
|
+
tt-wasmsplit-ci disable -p ./gamefolder -i APPID_PLACEHOLDER
|
|
116
172
|
```
|