- 安卓构建成功

This commit is contained in:
Yudi Xiao
2026-04-08 19:08:08 +08:00
parent f9dfde0ace
commit 920de25f96
5 changed files with 371 additions and 13 deletions

View File

@@ -13,12 +13,16 @@ const frameworksDir = path.join(packageDir, 'Frameworks')
const wrapperTemplateDir = path.join(rootDir, 'wrappers', 'ios')
function run(command, args) {
const executable = process.platform === 'win32' ? `${command}.cmd` : command
const result = spawnSync(executable, args, {
const result = spawnSync(command, args, {
cwd: rootDir,
shell: process.platform === 'win32',
stdio: 'inherit',
})
if (result.error) {
throw result.error
}
if (result.status !== 0) {
process.exit(result.status ?? 1)
}