mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🐛 移动端创建全局配置文件夹
This commit is contained in:
parent
cb48578c4b
commit
135696714e
1 changed files with 5 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/88250/gulu"
|
||||||
figure "github.com/common-nighthawk/go-figure"
|
figure "github.com/common-nighthawk/go-figure"
|
||||||
"github.com/siyuan-note/httpclient"
|
"github.com/siyuan-note/httpclient"
|
||||||
"github.com/siyuan-note/logging"
|
"github.com/siyuan-note/logging"
|
||||||
|
|
@ -34,6 +35,10 @@ func BootMobile(container, appDir, workspaceDir, nativeLibDir, privateDataDir, l
|
||||||
httpclient.SetUserAgent(UserAgent)
|
httpclient.SetUserAgent(UserAgent)
|
||||||
|
|
||||||
HomeDir = filepath.Join(workspaceDir, "home")
|
HomeDir = filepath.Join(workspaceDir, "home")
|
||||||
|
userHomeConfDir := filepath.Join(HomeDir, ".config", "siyuan")
|
||||||
|
if !gulu.File.IsExist(userHomeConfDir) {
|
||||||
|
os.MkdirAll(userHomeConfDir, 0755)
|
||||||
|
}
|
||||||
WorkingDir = filepath.Join(appDir, "app")
|
WorkingDir = filepath.Join(appDir, "app")
|
||||||
WorkspaceDir = workspaceDir
|
WorkspaceDir = workspaceDir
|
||||||
ConfDir = filepath.Join(workspaceDir, "conf")
|
ConfDir = filepath.Join(workspaceDir, "conf")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue