- 安卓构建成功
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user