@open-dy/tt-wasmsplit-ci 1.0.3 → 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 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,51 @@ 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
+
111
+
112
+ ## 上传函数名文件
113
+ ```bash
114
+ tt-wasmsplit-ci uploadSymbolList -p <package> -i <appId> -f <symbolListPath>
115
+ ```
116
+ 输入需要开始分包的小游戏包,上传 wasm 符号表文件,并返回匹配到的函数列表
117
+ ```
118
+ Usage: tt-wasmsplit-ci uploadSymbolList [options]
119
+
120
+ 上传 wasm 符号表文件
121
+ 注意:文件内容只包含函数名即可,不要包含引号、逗号等符号。e.g.
122
+
123
+ UIManager_Func1
124
+ UIManager_Func2
125
+ UIManager_Func3
126
+
127
+ Options:
128
+ -p, --package <path> 原始包路径,必填
129
+ -i, --appid <appid> app id,必填
130
+ --no-report 使用该参数时将不采集行为数据
131
+ -f, --funcList <path> wasm 符号表文件路径,必填
132
+ ```
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
+
78
146
  ## 终止分包
79
147
  ```bash
80
148
  tt-wasmsplit-ci disable -p <package> -i <appId>
@@ -90,4 +158,15 @@ Options:
90
158
  -i, --appid <appid> app id,必填
91
159
  --no-report 使用该参数时将不采集行为数据
92
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
93
172
  ```