An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Smoother launch screen on desktop https://github.com/siyuan-note/siyuan/issues/8596
Danielbb5150c8d4c7
diff --git a/app/electron/boot.html b/app/electron/boot.htmlindex a22bb1c8c6..9857f0482e 100644--- a/app/electron/boot.html+++ b/app/electron/boot.html@@ -33,6 +33,23 @@const sleep = (ms) => {return new Promise(resolve => setTimeout(resolve, ms))}++ const getSearch = (key) => {+ if (window.location.search.indexOf('?') === -1) {+ return ''+ }+ let value = ''+ const data = window.location.search.split('?')[1].split('&')+ data.find(item => {+ const keyValue = item.split('=')+ if (keyValue[0] === key) {+ value = keyValue[1]+ return true+ }+ })+ return value+ }+const redirect = () => {const uri = 'http://127.0.0.1:' + location.portif (navigator.userAgent.match(/Android/i))@@ -41,7 +58,8 @@window.location.replace(uri)}(async () => {- document.getElementById('details').textContent = 'Booting kernel...'+ const v = getSearch('v')+ document.getElementById('details').textContent = "v" + v + ' Booting kernel...'let progressing = falsewhile (!progressing) {try {diff --git a/app/electron/main.js b/app/electron/main.jsindex 5e46143a49..5a61ece4b0 100644--- a/app/electron/main.js+++ b/app/electron/main.js@@ -402,7 +402,7 @@ const initKernel = (workspace, port, lang) => {if (isDevEnv) {bootIndex = path.join(appDir, "electron", "boot.html");}- bootWindow.loadFile(bootIndex);+ bootWindow.loadFile(bootIndex, {query: {v: appVer}});bootWindow.show();const kernelName = "win32" === process.platform ? "SiYuan-Kernel.exe" : "SiYuan-Kernel";