@kevlns/u-cli-mod 0.1.0-beta.1 → 0.1.0-beta.3
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 +8 -2
- package/dist/cli.js +7 -1
- package/package.json +70 -66
- package/routes/2022.3.59f1c1.json +28 -0
- package/routes/expected-tree/2022.3.59f1c1.json +391 -0
- package/routes/expected-tree/2022.3.62f3c1.json +390 -390
- package/templates/2022.3.59f1c1/dll-importer-body.txt +31 -0
- package/templates/2022.3.59f1c1/mono-importer-body.txt +9 -0
- package/v-cli.plugin.json +265 -0
package/README.md
CHANGED
|
@@ -85,12 +85,13 @@ beta 阶段请显式使用 `@kevlns/u-cli-mod@beta`;发布稳定版并设置 `
|
|
|
85
85
|
### 单元测试与打包守卫
|
|
86
86
|
|
|
87
87
|
```bash
|
|
88
|
-
npm run check # build + lint +
|
|
88
|
+
npm run check # build + lint + 107 个 vitest 测试 + pack guard
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
`pack:guard` 会执行真实 `npm pack`(含文件清单校验),断言发布包:
|
|
92
92
|
|
|
93
|
-
- 包名为 `@kevlns/u-cli-mod
|
|
93
|
+
- 包名为 `@kevlns/u-cli-mod`,tgz 文件名精确为 `kevlns-u-cli-mod-0.1.0-beta.3.tgz`(与 package.json 版本一致);
|
|
94
|
+
- `files` 必须包含 `v-cli.plugin.json`,且清单身份字段(schemaVersion/package/command/bin/platforms)与包一致;
|
|
94
95
|
- 不出现:
|
|
95
96
|
|
|
96
97
|
```text
|
|
@@ -99,6 +100,10 @@ npm run check # build + lint + 94 个 vitest 测试 + pack guard
|
|
|
99
100
|
完整 com.unity.pipeline 目录树
|
|
100
101
|
```
|
|
101
102
|
|
|
103
|
+
### v-cli 插件清单
|
|
104
|
+
|
|
105
|
+
`v-cli.plugin.json` 随包发布(`package.json` 中 `vCli.manifest` 指向),声明 v-cli 命令 `unity`(平台 win32)与全部公共命令路径、参数、选项、输出与副作用元数据。`tests/vcli-manifest.test.ts` 以 `buildProgram()` 为行为源校验清单:命令树、参数、选项(flags 与描述)、usage 逐项一致,任何 CLI 定义变更未同步清单都会失败。
|
|
106
|
+
|
|
102
107
|
### 本地 tarball 安装矩阵(三模式验证)
|
|
103
108
|
|
|
104
109
|
```bash
|
|
@@ -132,6 +137,7 @@ npm run e2e:windows # 完整 Unity E2E(真实下载/转换/编译/命
|
|
|
132
137
|
| Editor | Revision | CLI | Pipeline | 状态 |
|
|
133
138
|
|---|---|---|---|---|
|
|
134
139
|
| `2022.3.62f3c1` | `1623fc0bbb97` | `1.0.0-beta.2` | `0.5.0-exp.1`(适配版) | 已验证(非官方移植) |
|
|
140
|
+
| `2022.3.59f1c1` | `6f0f5d6fe989` | `1.0.0-beta.2` | `0.5.0-exp.1`(适配版) | 已验证(非官方移植;同一上游 tgz 与补丁规则,适配载荷与 62f3 逐字节一致,已在 2022.3.59f1c1 编辑器完成真机回归) |
|
|
135
141
|
|
|
136
142
|
新增 Editor 版本时必须:新增 `routes/<版本>.json` 与 `routes/expected-tree/<版本>.json`、对应转换模板与补丁规则,并在该版本 Unity 上重新完成编译与回归测试。不得让相近版本复用既有路由。
|
|
137
143
|
|
package/dist/cli.js
CHANGED
|
@@ -99,7 +99,13 @@ export function buildProgram() {
|
|
|
99
99
|
.passThroughOptions(true);
|
|
100
100
|
execCmd.action(async (project, opts, command) => {
|
|
101
101
|
const extra = command.args.slice(1);
|
|
102
|
-
|
|
102
|
+
// `--` is commander separator syntax, never a Unity CLI argument. With
|
|
103
|
+
// passThroughOptions commander copies the whole tail verbatim (including a
|
|
104
|
+
// literal `--` written after the project), so strip it here: runExec must
|
|
105
|
+
// only ever receive the real pipeline args, and the project-path override
|
|
106
|
+
// rejection below stays fully intact.
|
|
107
|
+
const passthroughArgs = extra.filter((arg) => arg !== '--');
|
|
108
|
+
const { exitCode } = await runExec(project, passthroughArgs, {
|
|
103
109
|
downloadIfMissing: opts.downloadIfMissing,
|
|
104
110
|
});
|
|
105
111
|
process.exitCode = exitCode;
|
package/package.json
CHANGED
|
@@ -1,66 +1,70 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@kevlns/u-cli-mod",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
4
|
-
"description": "u-cli-mod: pin exact Unity Editor version routes and install the adapted com.unity.pipeline package for Unity 2022 (Windows-first). Downloads Unity assets at runtime into the user cache; the package itself contains no Unity binaries or package source. Not an official Unity project.",
|
|
5
|
-
"private": false,
|
|
6
|
-
"publishConfig": {
|
|
7
|
-
"access": "public"
|
|
8
|
-
},
|
|
9
|
-
"type": "module",
|
|
10
|
-
"bin": {
|
|
11
|
-
"u-cli-mod": "dist/cli.js"
|
|
12
|
-
},
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
"url": "https://github.com/kevlns/u-cli-mod
|
|
28
|
-
},
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
},
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
},
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@kevlns/u-cli-mod",
|
|
3
|
+
"version": "0.1.0-beta.3",
|
|
4
|
+
"description": "u-cli-mod: pin exact Unity Editor version routes and install the adapted com.unity.pipeline package for Unity 2022 (Windows-first). Downloads Unity assets at runtime into the user cache; the package itself contains no Unity binaries or package source. Not an official Unity project.",
|
|
5
|
+
"private": false,
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"bin": {
|
|
11
|
+
"u-cli-mod": "dist/cli.js"
|
|
12
|
+
},
|
|
13
|
+
"vCli": {
|
|
14
|
+
"manifest": "v-cli.plugin.json"
|
|
15
|
+
},
|
|
16
|
+
"main": "./dist/index.js",
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"routes",
|
|
20
|
+
"templates",
|
|
21
|
+
"v-cli.plugin.json",
|
|
22
|
+
"README.md",
|
|
23
|
+
"LICENSE"
|
|
24
|
+
],
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/kevlns/u-cli-mod.git"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://github.com/kevlns/u-cli-mod#readme",
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/kevlns/u-cli-mod/issues"
|
|
32
|
+
},
|
|
33
|
+
"author": {
|
|
34
|
+
"name": "kevlns",
|
|
35
|
+
"email": "936277610@qq.com"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"unity",
|
|
39
|
+
"unity-editor",
|
|
40
|
+
"pipeline",
|
|
41
|
+
"cli",
|
|
42
|
+
"windows"
|
|
43
|
+
],
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=20"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "tsc -p tsconfig.json",
|
|
49
|
+
"prepack": "npm run build",
|
|
50
|
+
"test": "vitest run",
|
|
51
|
+
"lint": "eslint src tests --max-warnings=0",
|
|
52
|
+
"pack:guard": "node scripts/pack-guard.mjs",
|
|
53
|
+
"check": "npm run build && npm run lint && npm test && npm run pack:guard",
|
|
54
|
+
"preflight:runner": "node scripts/preflight-runner.mjs",
|
|
55
|
+
"e2e:windows": "node scripts/e2e-windows.mjs",
|
|
56
|
+
"test:package": "node scripts/test-package-install.mjs"
|
|
57
|
+
},
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"commander": "^13.1.0",
|
|
60
|
+
"tar": "^7.5.22"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@types/node": "^24.13.3",
|
|
64
|
+
"eslint": "^9.39.5",
|
|
65
|
+
"typescript": "^5.9.3",
|
|
66
|
+
"typescript-eslint": "^8.67.0",
|
|
67
|
+
"vitest": "^3.2.7"
|
|
68
|
+
},
|
|
69
|
+
"license": "MIT"
|
|
70
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"editorVersion": "2022.3.59f1c1",
|
|
4
|
+
"editorRevision": "6f0f5d6fe989",
|
|
5
|
+
"cli": {
|
|
6
|
+
"version": "1.0.0-beta.2",
|
|
7
|
+
"url": "https://public-cdn.cloud.unity3d.com/hub/prod/cli/1.0.0-beta.2/unity-windows-x64.exe",
|
|
8
|
+
"sha256": "9b6e0090510c58e20cf784b5690aeeb72929cb3f6a2221b17456c873d4d0e563",
|
|
9
|
+
"expectedSize": 104948152,
|
|
10
|
+
"signerSubjectContains": "CN=Unity Technologies SF",
|
|
11
|
+
"signerThumbprint": "228FB6411B0A144478C86AAA3CD9473C43A8ABA7"
|
|
12
|
+
},
|
|
13
|
+
"pipeline": {
|
|
14
|
+
"packageName": "com.unity.pipeline",
|
|
15
|
+
"version": "0.5.0-exp.1",
|
|
16
|
+
"upstreamRevision": "17df0ac8d6533a8c22830c89dc85a24c01f30ade",
|
|
17
|
+
"url": "https://download.packages.unity.com/com.unity.pipeline/-/com.unity.pipeline-0.5.0-exp.1.tgz",
|
|
18
|
+
"sha1": "24975d51528a67809794e52185267762a9561e15",
|
|
19
|
+
"sha256": "708757f2521d3549406aa1694eec23ad6215095a5bd6993484b03366e9974b46",
|
|
20
|
+
"expectedSize": 4773713,
|
|
21
|
+
"expectedTree": "expected-tree/2022.3.59f1c1.json",
|
|
22
|
+
"templates": "2022.3.59f1c1",
|
|
23
|
+
"targetUnityVersion": "2022.3",
|
|
24
|
+
"patchVersion": 1
|
|
25
|
+
},
|
|
26
|
+
"status": "unofficial-unity-2022-port",
|
|
27
|
+
"verifiedBy": "local integration run, 2022.3.62f3c1 (1623fc0bbb97); identical adapted payload (same pinned upstream tgz + patch rules) re-verified on 2022.3.59f1c1 (6f0f5d6fe989)"
|
|
28
|
+
}
|