From 5ff6b4610ae23f3d21f1a7eefea033d56e12aaf6 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 1 Jun 2022 08:56:22 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=96=B0=E5=A2=9E=E5=86=85=E6=A0=B8?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E5=8F=82=E6=95=B0=20`mode`=20https://github.?= =?UTF-8?q?com/siyuan-note/siyuan/issues/5064?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DEV.md | 2 +- DEV_zh_CN.md | 2 +- kernel/util/working.go | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/DEV.md b/DEV.md index d81d56b1c..2b57cc6bb 100644 --- a/DEV.md +++ b/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 diff --git a/DEV_zh_CN.md b/DEV_zh_CN.md index d057922dd..c4c8153fa 100644 --- a/DEV_zh_CN.md +++ b/DEV_zh_CN.md @@ -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 diff --git a/kernel/util/working.go b/kernel/util/working.go index dd672f74e..14a90718c 100644 --- a/kernel/util/working.go +++ b/kernel/util/working.go @@ -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