fix cli error

This commit is contained in:
pengfei.zhou 2020-03-23 10:25:41 +08:00 committed by osborn
parent ebd32d7325
commit 81bbe38f78

View File

@ -6,7 +6,7 @@ require('shelljs/global')
const targetJSPath = `${__dirname}/../target/`
const targetAndroidPath = `${__dirname}/../target/android`
const targetiOSPath = `${__dirname}/../target/iOS`
const currentVersion = fs.readFileSync(`${targetJSPath}/version`).toString()
const currentVersion = fs.readFileSync(`${targetJSPath}/version`).toString().trim()
function copyFile(srcPath, tarPath, cb) {
var rs = fs.createReadStream(srcPath)
rs.on('error', function (err) {