mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 20:49:58 +08:00
🎨 新增内核启动参数 mode
https://github.com/siyuan-note/siyuan/issues/5064
This commit is contained in:
parent
66ee7d4715
commit
5ff6b4610a
2
DEV.md
2
DEV.md
@ -27,7 +27,7 @@ NPM mirror:
|
||||
|
||||
* `cd kernel`
|
||||
* `go build --tags "fts5" -o "../app/kernel/SiYuan-Kernel.exe"`
|
||||
* `SiYuan-Kernel.exe --wd=D:/siyuan/app`
|
||||
* `SiYuan-Kernel.exe --wd=D:/siyuan/app --mode=dev`
|
||||
|
||||
### iOS
|
||||
|
||||
|
@ -27,7 +27,7 @@ NPM 镜像:
|
||||
|
||||
* `cd kernel`
|
||||
* `go build --tags "fts5" -o "../app/kernel/SiYuan-Kernel.exe"`
|
||||
* `SiYuan-Kernel.exe --wd=D:/siyuan/app`
|
||||
* `SiYuan-Kernel.exe --wd=D:/siyuan/app --mode=dev`
|
||||
|
||||
### iOS
|
||||
|
||||
|
@ -63,7 +63,7 @@ func Boot() {
|
||||
accessAuthCode := flag.String("accessAuthCode", "", "access auth code")
|
||||
ssl := flag.Bool("ssl", false, "for https and wss")
|
||||
lang := flag.String("lang", "en_US", "zh_CN/zh_CHT/en_US/fr_FR")
|
||||
|
||||
mode := flag.String("mode", "prod", "dev/prod")
|
||||
flag.Parse()
|
||||
|
||||
if "" != *wdPath {
|
||||
@ -72,6 +72,7 @@ func Boot() {
|
||||
if "" != *lang {
|
||||
Lang = *lang
|
||||
}
|
||||
Mode = *mode
|
||||
Resident = *resident
|
||||
ReadOnly = *readOnly
|
||||
AccessAuthCode = *accessAuthCode
|
||||
|
Loading…
Reference in New Issue
Block a user