pull source
This commit is contained in:
parent
99db40f356
commit
9e80051475
@ -75,18 +75,19 @@ const gitCodeUpdate = async (buidType) => {
|
|||||||
|
|
||||||
const promiseList = []
|
const promiseList = []
|
||||||
|
|
||||||
if (buidType.includes('mac')) {
|
// 无论是否包含mac,都应该更新参照代码
|
||||||
if (!fs.existsSync(sourcePath)) {
|
// if (buidType.includes('mac')) {
|
||||||
mkdirsSync(sourcePath)
|
if (!fs.existsSync(sourcePath)) {
|
||||||
promiseList.push(gitClone(repoPath, sourcePath, 'Source'))
|
mkdirsSync(sourcePath)
|
||||||
|
promiseList.push(gitClone(repoPath, sourcePath, 'Source'))
|
||||||
|
} else {
|
||||||
|
if (fs.readdirSync(sourcePath).includes('.git')) {
|
||||||
|
promiseList.push(gitPull(sourcePath, 'Source'))
|
||||||
} else {
|
} else {
|
||||||
if (fs.readdirSync(sourcePath).includes('.git')) {
|
promiseList.push(gitClone(repoPath, sourcePath, 'Source'))
|
||||||
promiseList.push(gitPull(sourcePath, 'Source'))
|
|
||||||
} else {
|
|
||||||
promiseList.push(gitClone(repoPath, sourcePath, 'Source'))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// }
|
||||||
|
|
||||||
if (buidType.includes('linux')) {
|
if (buidType.includes('linux')) {
|
||||||
if (!fs.existsSync(linuxPath)) {
|
if (!fs.existsSync(linuxPath)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user