@gmcb/cli 0.9.0 → 0.9.1
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/CHANGELOG.md +8 -0
- package/README.md +6 -6
- package/lib/actions/build.js +1 -0
- package/lib/bin.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.9.1](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.9.0...@gmcb/cli@0.9.1) (2026-10-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [0.9.0](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.8.13...@gmcb/cli@0.9.0) (2026-10-29)
|
|
7
15
|
|
|
8
16
|
|
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ npm i @gmcb/cli -g
|
|
|
19
19
|
| `gmcb copy` | 复制资源到指定目录 |
|
|
20
20
|
| `gmcb config` | 配置管理 |
|
|
21
21
|
| `gmcb icon` | 生成应用图标(圆角 PNG / ICO) |
|
|
22
|
-
| `gmcb
|
|
22
|
+
| `gmcb image` | 按 LOGO 生成启动图(白底 + 可选 9-patch 边框) |
|
|
23
23
|
| `gmcb skill sync` | 同步技能到本地项目 |
|
|
24
24
|
| `gmcb skill list` | 列出当前项目所有技能 |
|
|
25
25
|
|
|
@@ -128,7 +128,7 @@ gmcb icon --source logo.png --sizes 64,128,256
|
|
|
128
128
|
gmcb icon --source logo.png --radius 24 --ico --dest out
|
|
129
129
|
```
|
|
130
130
|
|
|
131
|
-
## `gmcb
|
|
131
|
+
## `gmcb image`
|
|
132
132
|
|
|
133
133
|
按品牌 LOGO 生成启动图:默认白底、LOGO 水平居中,按画布比例计算 LOGO 尺寸,不依赖项目模板。适用于白标项目换品牌时生成/更新 `splash.9.png`。
|
|
134
134
|
|
|
@@ -155,16 +155,16 @@ gmcb icon --source logo.png --radius 24 --ico --dest out
|
|
|
155
155
|
|
|
156
156
|
```bash
|
|
157
157
|
# uni-app 项目:直接生成/更新 static/splash.9.png
|
|
158
|
-
gmcb
|
|
158
|
+
gmcb image -s ./static/appIcon.png
|
|
159
159
|
|
|
160
160
|
# 生成普通 PNG(无 9-patch 边框)
|
|
161
|
-
gmcb
|
|
161
|
+
gmcb image -s ./logo.png --name splash
|
|
162
162
|
|
|
163
163
|
# 左右各留 40%,LOGO 宽度为画布 20%,距顶部 20%
|
|
164
|
-
gmcb
|
|
164
|
+
gmcb image -s ./logo.png --left 40% --top 20%
|
|
165
165
|
|
|
166
166
|
# 自定义画布与位置
|
|
167
|
-
gmcb
|
|
167
|
+
gmcb image -s ./logo.png --width 2050 --height 1538 --left 500 --top 200 --bg '#f7f7f7'
|
|
168
168
|
```
|
|
169
169
|
|
|
170
170
|
## `gmcb copy`
|
package/lib/actions/build.js
CHANGED
|
@@ -387,6 +387,7 @@ async function pullRemoteResources(opts) {
|
|
|
387
387
|
const repoPkg = (0, fs_extra_1.readJsonSync)(repoPkgPath);
|
|
388
388
|
if (!repoPkg.scripts)
|
|
389
389
|
repoPkg.scripts = {};
|
|
390
|
+
repoPkg.appId = appId;
|
|
390
391
|
repoPkg.scripts['copy:h5'] = 'gmcb copy -s ./dist/build/h5 -d ../../out/renderer/{package.appId}/ --clean';
|
|
391
392
|
repoPkg.scripts['copy:app'] = 'gmcb copy -s ./dist/build/app -d ../../app/src/main/assets/apps/{manifest.appid}/www/ --clean';
|
|
392
393
|
(0, fs_extra_1.writeJsonSync)(repoPkgPath, repoPkg, { spaces: 2 });
|
package/lib/bin.js
CHANGED