🎨 Improve desktop boot interface
This commit is contained in:
parent
bfa957ff68
commit
004f030119
3 changed files with 7 additions and 0 deletions
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue