feat: 添加鸿蒙元服务(mp-harmony)发行支持

This commit is contained in:
2026-05-27 16:14:48 +08:00
parent 988b36ebb4
commit da17911a9c
2 changed files with 112 additions and 0 deletions

View File

@@ -182,6 +182,13 @@ class VersionInjectPlugin {
} catch (e) {
console.error('补丁脚本执行失败:', e.message);
}
} else if (platform === 'mp-harmony') {
console.log('\n🚀 mp-harmony 生产构建完成,运行补丁脚本(配置拷贝 + ZIP 打包)...');
try {
execSync(`"${process.execPath}" scripts/harmony.patch.js --mode production`, { cwd: __dirname, stdio: 'inherit' });
} catch (e) {
console.error('补丁脚本执行失败:', e.message);
}
} else if (platform === 'h5' && UNI_SCRIPT) {
this._zipH5Build(compilation);
}