fix: 修复架构映射以正确复制库文件

This commit is contained in:
lyswhut
2026-08-21 20:33:01 +08:00
parent e8214393e9
commit 7c3ca2a0fc
5 changed files with 12 additions and 7 deletions
+2 -2
View File
@@ -40,8 +40,8 @@ const replaceSqliteLib = async(arch) => {
await fs.promises.unlink(targetPath).catch(_ => _)
await fs.promises.copyFile(filePath, targetPath)
}
exports.copyLib = async(arch = process.arch) => {
if (process.platform === 'linux') {
exports.copyLib = async(arch = process.arch, replaceLocal = false) => {
if (process.platform === 'linux' || replaceLocal) {
await replaceSqliteLib(arch)
return
}