完善lib替换

This commit is contained in:
lyswhut
2023-02-04 18:56:47 +08:00
parent ab1d18debe
commit 32626ef773
4 changed files with 83 additions and 131 deletions

View File

@@ -58,7 +58,7 @@ module.exports = async(context) => {
case Arch.arm64:
case Arch.armv7l:
if (fs.existsSync(bindingFilePath)) {
console.log('rename binding file...')
// console.log('rename binding file...')
await fsPromises.rename(bindingFilePath, bindingBakFilePath)
}
await replaceSqliteLib(arch)
@@ -66,7 +66,7 @@ module.exports = async(context) => {
default:
if (fs.existsSync(bindingFilePath)) return
console.log('restore binding file...')
// console.log('restore binding file...')
await fsPromises.rename(bindingBakFilePath, bindingFilePath)
break
}