mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
🎨 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"),
|
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 kernelName = "win32" === process.platform ? "SiYuan-Kernel.exe" : "SiYuan-Kernel";
|
||||||
const kernelPath = path.join(appDir, "kernel", kernelName);
|
const kernelPath = path.join(appDir, "kernel", kernelName);
|
||||||
if (!fs.existsSync(kernelPath)) {
|
if (!fs.existsSync(kernelPath)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue