Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2024-02-05 12:20:11 +08:00
commit 5c8380323d

View file

@ -444,7 +444,7 @@ const initKernel = (workspace, port, lang) => {
const kernelName = "win32" === process.platform ? "SiYuan-Kernel.exe" : "SiYuan-Kernel";
const kernelPath = path.join(appDir, "kernel", kernelName);
if (!fs.existsSync(kernelPath)) {
showErrorWindow("⚠️ 内核文件丢失 Kernel is missing", "<div>内核可执行文件丢失,请重新安装思源,并将思源加入杀毒软件信任列表。</div><div>The kernel binary is not found, please reinstall SiYuan and add SiYuan into the trust list of your antivirus software.</div>");
showErrorWindow("⚠️ 内核程序丢失 Kernel program is missing", `<div>内核程序丢失,请重新安装思源,并将思源内核程序加入杀毒软件信任列表。</div><div>The kernel program is not found, please reinstall SiYuan and add SiYuan Kernel prgram into the trust list of your antivirus software.</div><div><i>${kernelPath}</i></div>`);
bootWindow.destroy();
resolve(false);
return;