feat(bin): 优化打包脚本到跨平台

This commit is contained in:
v-zhangjc9
2025-05-21 17:56:10 +08:00
parent 6e7cef6170
commit 8c2b94f6c9
55 changed files with 631 additions and 193 deletions

View File

@@ -0,0 +1,15 @@
import {cd, path} from 'zx'
import {trim} from "licia";
import {run_deploy_batch, run_deploy_root, run_package, run_upload_normal} from "./library.js";
// 切换目录
cd(trim(path.dirname(import.meta.dirname)))
// 执行流程
try {
await run_deploy_root()
await run_deploy_batch(['service-common', 'service-dependencies', 'service-configuration', 'service-forest', 'service-executor', 'service-executor/service-executor-core'])
await run_package('service-executor/service-executor-manager')
await run_upload_normal('service-executor-manager', 'service-executor')
} catch (e) {
console.error(e)
}