🎨 Improve desktop boot interface

This commit is contained in:
Daniel 2023-06-22 21:36:24 +08:00
parent bfa957ff68
commit 004f030119
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 7 additions and 0 deletions

View file

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View file

@ -398,6 +398,13 @@ const initKernel = (workspace, port, lang) => {
icon: path.join(appDir, "stage", "icon-large.png"),
});
let bootIndex = path.join(appDir, "app", "electron", "index.html");
if (isDevEnv) {
bootIndex = path.join(appDir, "electron", "index.html");
}
bootWindow.loadFile(bootIndex);
bootWindow.show();
const kernelName = "win32" === process.platform ? "SiYuan-Kernel.exe" : "SiYuan-Kernel";
const kernelPath = path.join(appDir, "kernel", kernelName);
if (!fs.existsSync(kernelPath)) {