/**
 * deploy-android
 *
 * @author Cator Vee  hi@catorv.com
 */
const project = require('../../project')
const { exec } = require('../../utils/shell')

const deployAndroid = async () => {
    const cwd = project.fs.resolve('Release_android')

    try {
        console.spin()
        await exec('sh deploy.sh', { cwd })
        console.ok('Android 发布成功')
    } catch (e) {
        console.fail('Android 发布失败')
        console.fatal(e.message)
    }
}

module.exports = deployAndroid