修复 win7 无法启动的问题

This commit is contained in:
lyswhut
2026-09-14 20:05:55 +08:00
parent abcbf5fa00
commit 96fd33065a
6 changed files with 6 additions and 4 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, replaceLocal = false) => {
if (process.platform === 'linux' || replaceLocal) {
exports.copyLib = async(arch = process.arch) => {
if (process.platform === 'linux') {
await replaceSqliteLib(arch)
return
}