@open-dy/tt-wasmsplit-ci 1.0.4 → 1.0.6

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 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>
@@ -71,10 +94,21 @@ Options:
71
94
  -p, --package <path> 原始包路径,必填
72
95
  -i, --appid <appid> app id,必填
73
96
  -g, --debug 包含此参数下载 debug 包,反之下载 release 包 (default: false)
97
+ -bm, --bulk-memory 包含此参数表示开启 bulk memory 特性,反之不开启 (default: false)
74
98
  --no-report 使用该参数时将不采集行为数据
75
99
  -h, --help display help for command
76
100
  ```
77
101
 
102
+ 示例:
103
+ 旧包体格式(原始包为zip)
104
+ ```bash
105
+ tt-wasmsplit-ci dosplit -p ./mygame.zip -i APPID_PLACEHOLDER -g
106
+ ```
107
+ 新包体格式(原始包为一个文件夹)
108
+ ```bash
109
+ tt-wasmsplit-ci dosplit -p ./gamefolder -i APPID_PLACEHOLDER -g
110
+ ```
111
+
78
112
 
79
113
  ## 上传函数名文件
80
114
  ```bash
@@ -98,6 +132,18 @@ Options:
98
132
  -f, --funcList <path> wasm 符号表文件路径,必填
99
133
  ```
100
134
 
135
+ 示例:
136
+ 旧包体格式(原始包为zip)
137
+ ```bash
138
+ tt-wasmsplit-ci uploadSymbolList -p ./mygame.zip -i APPID_PLACEHOLDER -f ./wasm_symbols/list.txt
139
+ ```
140
+ 新包体格式(原始包为一个文件夹)
141
+ ```bash
142
+ tt-wasmsplit-ci uploadSymbolList -p ./gamefolder -i APPID_PLACEHOLDER -f ./wasm_symbols/list.txt
143
+ ```
144
+
145
+
146
+
101
147
  ## 终止分包
102
148
  ```bash
103
149
  tt-wasmsplit-ci disable -p <package> -i <appId>
@@ -113,4 +159,15 @@ Options:
113
159
  -i, --appid <appid> app id,必填
114
160
  --no-report 使用该参数时将不采集行为数据
115
161
  -h, --help display help for command
162
+ ```
163
+
164
+ 示例:
165
+ 旧包体格式(原始包为zip)
166
+ ```bash
167
+ # 终止分包(替换占位符为真实路径和 app id)
168
+ tt-wasmsplit-ci disable -p ./mygame.zip -i APPID_PLACEHOLDER
169
+ ```
170
+ 新包体格式(原始包为一个文件夹)
171
+ ```bash
172
+ tt-wasmsplit-ci disable -p ./gamefolder -i APPID_PLACEHOLDER
116
173
  ```