update template file

This commit is contained in:
pengfei.zhou
2020-03-31 19:30:20 +08:00
committed by osborn
parent dc32cf08a8
commit 0067ccc0ef
3 changed files with 5 additions and 3 deletions

View File

@@ -125,11 +125,12 @@ function initiOS(path, name) {
'Example.xcodeproj/project.pbxproj',
'Podfile',
].forEach(e => {
fs.writeFileSync(`${pathq}/${e}`,
fs.writeFileSync(`${path}/${e}`,
fs.readFileSync(`${targetiOSPath}/${e}`).toString()
.replace(/__\$__/g, name)
.replace(/__\$Version__/g, currentVersion))
})
fs.renameSync(`${path}/Example.xcodeproj`, `${path}/${name}.xcodeproj`)
console.log(`Create Doric iOS Project Success`)
})
})