mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 桌面端自动下载更新安装包 https://github.com/siyuan-note/siyuan/issues/5837
This commit is contained in:
parent
684e430fe1
commit
e4ddd99863
7 changed files with 18 additions and 11 deletions
|
|
@ -83,6 +83,9 @@ func Boot() {
|
|||
Container = ContainerDocker
|
||||
}
|
||||
|
||||
msStoreFilePath := filepath.Join(WorkingDir, "ms-store")
|
||||
ISMicrosoftStore = gulu.File.IsExist(msStoreFilePath)
|
||||
|
||||
UserAgent = UserAgent + " " + Container
|
||||
httpclient.SetUserAgent(UserAgent)
|
||||
|
||||
|
|
@ -276,7 +279,8 @@ var (
|
|||
AccessAuthCode string
|
||||
Lang = ""
|
||||
|
||||
Container string // docker, android, ios, std
|
||||
Container string // docker, android, ios, std
|
||||
ISMicrosoftStore bool // 桌面端是否是微软商店版
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue