Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 公测云端同步数据仓库 https://github.com/siyuan-note/siyuan/issues/5337

Liang Dingac116ed20658
diff --git a/kernel/model/assets_watcher.go b/kernel/model/assets_watcher.go
index 087490a718..85035459e4 100644
--- a/kernel/model/assets_watcher.go
+++ b/kernel/model/assets_watcher.go
@@ -29,7 +29,7 @@ import (
var assetsWatcher *fsnotify.Watcher
func WatchAssets() {
- if "android" == util.Container {
+ if "android" == util.Container || "ios" == util.Container {
return
}
diff --git a/kernel/model/assets_watcher_darwin.go b/kernel/model/assets_watcher_darwin.go
index a97f121a43..91b3b3b0df 100644
--- a/kernel/model/assets_watcher_darwin.go
+++ b/kernel/model/assets_watcher_darwin.go
@@ -29,10 +29,6 @@ import (
var assetsWatcher *watcher.Watcher
func WatchAssets() {
- if "iOS" == util.Container {
- return
- }
-
go func() {
watchAssets()
}()
diff --git a/kernel/model/repository.go b/kernel/model/repository.go
index 4b87fdb682..be038b3a49 100644
--- a/kernel/model/repository.go
+++ b/kernel/model/repository.go
@@ -271,9 +271,6 @@ func syncRepo(boot, exit, byHand bool) {
return
}
- CloseWatchAssets()
- defer WatchAssets()
-
start := time.Now()
cloudInfo := &dejavu.CloudInfo{
Dir: "main",