@gmcb/cli 0.9.16 → 0.9.17
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 +5 -0
- package/lib/actions/build.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
<!-- release:insert -->
|
|
4
4
|
|
|
5
|
+
## 0.9.17 [2026-11-20]
|
|
6
|
+
<!-- generated-by: specs -->
|
|
7
|
+
### 优化
|
|
8
|
+
- `--pull` 拉取 electron-vite 远程工程时,注入并执行的复制脚本由 `copy:h5` 更名为 `copy:electron`,与 gradlew 的 `copy:android` 命名对齐;远端工程自带的 `copy:h5` 脚本不再被覆盖。
|
|
9
|
+
|
|
5
10
|
## 0.9.16 [2026-11-19]
|
|
6
11
|
<!-- generated-by: specs -->
|
|
7
12
|
### 优化
|
package/lib/actions/build.js
CHANGED
|
@@ -429,7 +429,7 @@ async function pullRemoteResources(opts) {
|
|
|
429
429
|
if (!repoPkg.scripts)
|
|
430
430
|
repoPkg.scripts = {};
|
|
431
431
|
if (opts.compiler === 'electron-vite') {
|
|
432
|
-
repoPkg.scripts['copy:
|
|
432
|
+
repoPkg.scripts['copy:electron'] = 'gmcb copy -s ./dist/build/h5 -d ../../out/renderer/{manifest.appid}/ --clean';
|
|
433
433
|
}
|
|
434
434
|
if (opts.compiler === 'gradlew') {
|
|
435
435
|
if (isUniappX) {
|
|
@@ -445,7 +445,7 @@ async function pullRemoteResources(opts) {
|
|
|
445
445
|
(0, child_process_1.execSync)('npm install', { cwd: repoDir, stdio: 'inherit' });
|
|
446
446
|
if (opts.compiler === 'electron-vite') {
|
|
447
447
|
(0, child_process_1.execSync)(`npm run build:h5:${buildEnv}`, { cwd: repoDir, stdio: 'inherit' });
|
|
448
|
-
(0, child_process_1.execSync)('npm run copy:
|
|
448
|
+
(0, child_process_1.execSync)('npm run copy:electron', { cwd: repoDir, stdio: 'inherit' });
|
|
449
449
|
const pkgPath = (0, path_1.join)(utils_1.COMMAND_PATH, 'package.json');
|
|
450
450
|
let pkgContent = (0, fs_1.readFileSync)(pkgPath, 'utf-8');
|
|
451
451
|
pkgContent = pkgContent.replace(/"productName":\s*"[^"]*"/, `"productName": "${appName}"`);
|